use proconio::{input, fastout}; #[fastout] fn main() { input! { n: u32, a: u32, h: u32, m: u32, s: u32, } println!("{}", output(solve(n, a, h, m, s))); } fn solve(n: u32, a: u32, h: u32, m: u32, s: u32) -> bool { n * a >= 86400 - (h * 3600 + m * 60 + s) } fn output(ans: bool) -> &'static str { match ans { true => "Yes", false => "No", } }