Started on abc257
This commit is contained in:
15
atcoder/beginner_contests/abc257/src/bin/a.rs
Normal file
15
atcoder/beginner_contests/abc257/src/bin/a.rs
Normal 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());
|
||||
}
|
||||
Reference in New Issue
Block a user