Submission #8755654
Source Code Expand
#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
rep(i,n+1) {
int x = i*108/100;
if (x == n) {
cout<<i<<endl;
return 0;
}
}
cout<<":("<<endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Tax Rate |
| User | snuke |
| Language | C++14 (GCC 5.4.1) |
| Score | 200 |
| Code Size | 303 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 256 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | in01.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in19.txt, in20.txt, in21.txt, in22.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| in01.txt | AC | 1 ms | 256 KiB |
| in06.txt | AC | 1 ms | 256 KiB |
| in07.txt | AC | 1 ms | 256 KiB |
| in08.txt | AC | 1 ms | 256 KiB |
| in09.txt | AC | 1 ms | 256 KiB |
| in10.txt | AC | 1 ms | 256 KiB |
| in11.txt | AC | 1 ms | 256 KiB |
| in12.txt | AC | 1 ms | 256 KiB |
| in13.txt | AC | 1 ms | 256 KiB |
| in14.txt | AC | 1 ms | 256 KiB |
| in15.txt | AC | 1 ms | 256 KiB |
| in19.txt | AC | 1 ms | 256 KiB |
| in20.txt | AC | 1 ms | 256 KiB |
| in21.txt | AC | 1 ms | 256 KiB |
| in22.txt | AC | 1 ms | 256 KiB |
| sample-01.txt | AC | 1 ms | 256 KiB |
| sample-02.txt | AC | 1 ms | 256 KiB |
| sample-03.txt | AC | 1 ms | 256 KiB |