use proconio::input; use reprol::math::div_ceil::DivCeil; fn main() { input! { a: i64, b: i64, } let ans = b.div_ceil_(a); println!("{}", ans); } #[allow(dead_code)] mod reprol { pub mod math { pub mod div_ceil { pub trait DivCeil { fn div_ceil_(self, rhs: Self) -> Self; } macro_rules! impl_integer { ($($ty:ident),*) => {$( impl DivCeil for $ty { #[allow(unused_comparisons)] fn div_ceil_(self, rhs: Self) -> Self { debug_assert!(self >= 0); debug_assert!(rhs >= 1); let d = self / rhs; let r = self % rhs; if r > 0 { d + 1 } else { d } } } )*}; } impl_integer! { u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize } } } }