結果

問題 No.3259 C++ → Rust → Python
ユーザー The_Bouningeeeen
提出日時 2025-09-08 21:29:07
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 10,593 ms
コンパイル使用メモリ 400,316 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-08 21:29:21
合計ジャッジ時間 11,604 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        l: usize,
        r: usize,
    }

    let a = if l <= 295 {
        0
    } else if l <= 416 {
        1
    } else {
        2
    };

    let b = if r <= 295 {
        0
    } else if r <= 416 {
        1
    } else {
        2
    };

    println!("{}", b - a);
}
0