結果
問題 | No.734 Careful Engineer |
ユーザー |
|
提出日時 | 2024-05-29 13:50:53 |
言語 | Rust (1.83.0 + proconio) |
結果 |
TLE
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 13,386 ms |
コンパイル使用メモリ | 395,476 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-12-20 21:01:14 |
合計ジャッジ時間 | 20,586 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 TLE * 2 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let n: Vec<u64> = s.split_whitespace().flat_map(str::parse).collect();if n[0] * 60 <= n[1] {println!("-1");return;}let mut x = 0;while n[0] * 60 * x < n[1] * x + n[2] * 3600 {x += 1;}println!("{}", x)}