結果

問題 No.218 経験値1.5倍
ユーザー cra77756176cra77756176
提出日時 2022-12-13 20:12:03
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 449 bytes
コンパイル時間 12,890 ms
コンパイル使用メモリ 378,000 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 14:21:00
合計ジャッジ時間 14,181 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut xx = String::new();
    std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
    let xx: Vec<i64> = xx.split_whitespace().flat_map(str::parse).collect();

    let normal_req = xx[0] / xx[1] + (xx[0] % xx[1]).abs().signum();
    let campaign_req = xx[0] / xx[2] + (xx[0] % xx[2]).abs().signum();

    if 3 * campaign_req <= 2 * normal_req {
        println!("YES");
    } else {
        println!("NO");
    }
}
0