結果

問題 No.3259 C++ → Rust → Python
ユーザー yiwiy9
提出日時 2025-09-06 13:07:44
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 439 bytes
コンパイル時間 13,964 ms
コンパイル使用メモリ 400,004 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-09-06 13:08:52
合計ジャッジ時間 15,143 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

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

    if l <= 295 {
        if r <= 295 {
            println!("0");
        } else if r <= 416 {
            println!("1");
        } else {
            println!("2");
        }
    } else if l <= 416 {
        if r <= 416 {
            println!("0");
        } else {
            println!("1");
        }
    } else {
        println!("0");
    }
}
0