Started on abc257

This commit is contained in:
2022-12-05 12:50:59 +01:00
parent 27d00340b9
commit b0fc6d0e58
10 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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());
}