結果

問題 No.2789 hako111223’s Master Thesis
ユーザー kyotoku1483
提出日時 2025-03-25 17:37:46
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 11,583 ms
コンパイル使用メモリ 389,100 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-25 17:38:31
合計ジャッジ時間 12,911 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#[allow(unused)]
use proconio::{input, marker::Chars};

fn main() {
    input! {
        a: i32,
        b: i32,
        c: i32,
        d: i32,
    }
    if b + 31 - a >= c {
        println!("1")
    } else if b + 31 - a >= d {
        println!("2")
    } else {
        println!("3")
    }
}
0