16 lines
242 B
Rust
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());
|
|
}
|