Submission #16603778
Source Code Expand
use proconio::input;
fn main() {
input! {
n: usize,
};
let x = n * 100 / 108;
for x_i in x.saturating_sub(1)..=x + 1 {
if x_i * 108 / 100 == n {
println!("{}", x_i);
return;
}
}
println!(":(");
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Tax Rate |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 200 |
| Code Size | 269 Byte |
| Status | AC |
| Exec Time | 4 ms |
| Memory | 2084 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 | 2 ms | 2028 KiB |
| in06.txt | AC | 1 ms | 1928 KiB |
| in07.txt | AC | 2 ms | 2000 KiB |
| in08.txt | AC | 2 ms | 2012 KiB |
| in09.txt | AC | 1 ms | 2024 KiB |
| in10.txt | AC | 1 ms | 1964 KiB |
| in11.txt | AC | 4 ms | 2076 KiB |
| in12.txt | AC | 1 ms | 1968 KiB |
| in13.txt | AC | 1 ms | 1960 KiB |
| in14.txt | AC | 4 ms | 2080 KiB |
| in15.txt | AC | 2 ms | 2024 KiB |
| in19.txt | AC | 1 ms | 2068 KiB |
| in20.txt | AC | 2 ms | 1892 KiB |
| in21.txt | AC | 2 ms | 2084 KiB |
| in22.txt | AC | 2 ms | 2016 KiB |
| sample-01.txt | AC | 1 ms | 1948 KiB |
| sample-02.txt | AC | 1 ms | 1896 KiB |
| sample-03.txt | AC | 1 ms | 1960 KiB |