Submission #51519412
Source Code Expand
Copy
use proconio::input;fn main() {input! {n: usize,x: usize,};let index = (x - 1) / n;let ans = (b'A' + index as u8) as char;println!("{}", ans);}
use proconio::input; fn main() { input! { n: usize, x: usize, }; let index = (x - 1) / n; let ans = (b'A' + index as u8) as char; println!("{}", ans); }
Submission Info
Submission Time | |
---|---|
Task | B - A to Z String 2 |
User | bouzuya |
Language | Rust (rustc 1.70.0) |
Score | 100 |
Code Size | 190 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 2060 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_01.txt, 00_sample_02.txt, 01_random_01.txt, 01_random_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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 1 ms | 2056 KB |
00_sample_02.txt | AC | 0 ms | 1900 KB |
01_random_01.txt | AC | 0 ms | 1892 KB |
01_random_02.txt | AC | 0 ms | 1872 KB |
01_random_03.txt | AC | 0 ms | 2044 KB |
01_random_04.txt | AC | 0 ms | 2060 KB |
01_random_05.txt | AC | 1 ms | 1872 KB |
01_random_06.txt | AC | 1 ms | 1960 KB |
01_random_07.txt | AC | 1 ms | 1852 KB |
01_random_08.txt | AC | 0 ms | 1896 KB |