Files
contests/atcoder/beginner_contests/abc257/src/bin/a.rs
2022-12-05 12:50:59 +01:00

16 lines
242 B
Rust

use proconio::input;
fn main() {
input!{
n: f32,
x: f32,
};
let l = x / n;
let c = l.ceil() - 1.;
let chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
println!("{}", chars.chars().nth(c as usize).unwrap());
}