Submission #60730909
Source Code Expand
use itertools::Itertools;
use proconio::{input, marker::Chars};
pub fn main() {
input! {
n: usize,
mut r: i64,
dan: [(usize, i64); n]
};
for (d, a) in dan {
if d == 1 {
if r >= 1600 && r < 2800 {
r += a;
}
} else {
if r >= 1200 && r < 2400 {
r += a;
}
}
}
println!("{}", r);
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - ARC Division |
| User | macaroon |
| Language | Rust (rustc 1.70.0) |
| Score | 200 |
| Code Size | 448 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 2072 KiB |
Compile Error
warning: unused import: `itertools::Itertools`
--> src/main.rs:1:5
|
1 | use itertools::Itertools;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `marker::Chars`
--> src/main.rs:2:23
|
2 | use proconio::{input, marker::Chars};
| ^^^^^^^^^^^^^
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 02_handmade_15.txt, 02_handmade_16.txt, 02_handmade_17.txt, 02_handmade_18.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 0 ms | 2072 KiB |
| 00_sample_01.txt | AC | 0 ms | 1804 KiB |
| 00_sample_02.txt | AC | 0 ms | 1924 KiB |
| 01_random_03.txt | AC | 0 ms | 1932 KiB |
| 01_random_04.txt | AC | 0 ms | 1976 KiB |
| 01_random_05.txt | AC | 0 ms | 1896 KiB |
| 01_random_06.txt | AC | 0 ms | 1956 KiB |
| 01_random_07.txt | AC | 0 ms | 1932 KiB |
| 01_random_08.txt | AC | 0 ms | 1992 KiB |
| 01_random_09.txt | AC | 0 ms | 1924 KiB |
| 01_random_10.txt | AC | 1 ms | 1908 KiB |
| 01_random_11.txt | AC | 0 ms | 1936 KiB |
| 01_random_12.txt | AC | 0 ms | 1908 KiB |
| 01_random_13.txt | AC | 1 ms | 1860 KiB |
| 01_random_14.txt | AC | 1 ms | 1916 KiB |
| 02_handmade_15.txt | AC | 0 ms | 1964 KiB |
| 02_handmade_16.txt | AC | 1 ms | 1860 KiB |
| 02_handmade_17.txt | AC | 0 ms | 1932 KiB |
| 02_handmade_18.txt | AC | 1 ms | 1840 KiB |