Submission #37487822
Source Code Expand
use proconio::{input, marker::Usize1};
fn main() {
input! {
n: usize,
mut a: [u64; n],
q: usize,
}
for _ in 0..q {
input! {
typ: usize,
};
if typ == 1 {
input! {
k: Usize1,
x: u64,
}
a[k] = x;
} else {
input! {
k: Usize1,
}
println!("{}", a[k]);
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - First Query Problem |
| User | Bookends |
| Language | Rust (1.42.0) |
| Score | 200 |
| Code Size | 493 Byte |
| Status | AC |
| Exec Time | 167 ms |
| Memory | 5376 KiB |
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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 6 ms | 2096 KiB |
| 00_sample_01.txt | AC | 3 ms | 2016 KiB |
| 00_sample_02.txt | AC | 2 ms | 2044 KiB |
| 01_random_03.txt | AC | 95 ms | 3028 KiB |
| 01_random_04.txt | AC | 100 ms | 4832 KiB |
| 01_random_05.txt | AC | 99 ms | 4896 KiB |
| 01_random_06.txt | AC | 25 ms | 3528 KiB |
| 01_random_07.txt | AC | 36 ms | 5376 KiB |
| 01_random_08.txt | AC | 167 ms | 4364 KiB |
| 01_random_09.txt | AC | 98 ms | 4864 KiB |
| 01_random_10.txt | AC | 100 ms | 5100 KiB |