solutions: 617A
This commit is contained in:
parent
3c0bbb7e52
commit
326313c2d2
1 changed files with 16 additions and 0 deletions
16
solutions/rust/src/bin/617A.rs
Normal file
16
solutions/rust/src/bin/617A.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use std::io;
|
||||
|
||||
fn main() {
|
||||
let mut s = String::new();
|
||||
io::stdin().read_line(&mut s).unwrap();
|
||||
|
||||
let steps = s.trim().parse::<u64>().unwrap();
|
||||
|
||||
let mut count = 0;
|
||||
count += steps / 5;
|
||||
if steps % 5 != 0 {
|
||||
count += 1;
|
||||
}
|
||||
|
||||
println!("{}", count);
|
||||
}
|
Loading…
Reference in a new issue