結果
| 問題 | No.2350 Four Seasons |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-16 21:25:34 |
| 言語 | Rust (1.93.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 376 bytes |
| 記録 | |
| コンパイル時間 | 422 ms |
| コンパイル使用メモリ | 190,644 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-10 16:13:01 |
| 合計ジャッジ時間 | 1,122 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
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);
}