結果
問題 | No.218 経験値1.5倍 |
ユーザー |
|
提出日時 | 2020-02-22 21:22:51 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 600 bytes |
コンパイル時間 | 12,848 ms |
コンパイル使用メモリ | 377,528 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 20:49:34 |
合計ジャッジ時間 | 14,311 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
fn main() { let mut a = String::new(); std::io::stdin().read_line(&mut a).ok(); let a: usize = a.trim().parse().unwrap(); let mut b = String::new(); std::io::stdin().read_line(&mut b).ok(); let b: usize = b.trim().parse().unwrap(); let mut c = String::new(); std::io::stdin().read_line(&mut c).ok(); let c: usize = c.trim().parse().unwrap(); let b_count = a / b + if a % b == 0 { 0 } else { 1 }; let c_count = a / c + if a % c == 0 { 0 } else { 1 }; if b_count * 2 >= c_count * 3 { println!("YES"); } else { println!("NO"); } }