結果

問題 No.2350 Four Seasons
ユーザー atcoder8
提出日時 2023-06-16 21:25:34
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 376 bytes
コンパイル時間 14,307 ms
コンパイル使用メモリ 382,816 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-24 12:58:05
合計ジャッジ時間 12,669 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let x = {
        let mut line = String::new();
        std::io::stdin().read_line(&mut line).unwrap();
        line.trim().parse::<usize>().unwrap()
    };

    let season = if x <= 2 || x == 12 {
        "winter"
    } else if x <= 5 {
        "spring"
    } else if x <= 8 {
        "summer"
    } else {
        "fall"
    };
    println!("{}", season);
}
0