fn getline() -> String { let mut __ret = String::new(); std::io::stdin().read_line(&mut __ret).ok(); __ret } fn main() { let s = getline(); let a: Vec<_> = s.trim().split(' ').collect(); let x: i32 = a[0].parse().unwrap(); let y: i32 = a[1].parse().unwrap(); if y % x == 0 { // 割り切れた場合は最短 let min_step = y / x; println!("{}", min_step); } else { let mut base = 1; loop { let tmp = x * base; if tmp > y { println!("{}", base); break; } base += 1; } } }