結果
| 問題 |
No.2350 Four Seasons
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2023-06-16 21:22:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 2,000 ms |
| コード長 | 449 bytes |
| コンパイル時間 | 2,297 ms |
| コンパイル使用メモリ | 74,400 KB |
| 実行使用メモリ | 41,776 KB |
| 最終ジャッジ日時 | 2024-06-24 12:49:46 |
| 合計ジャッジ時間 | 4,909 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
sc.close();
if (x < 3) {
System.out.println("winter");
} else if (x < 6) {
System.out.println("spring");
} else if (x < 9) {
System.out.println("summer");
} else if (x < 12) {
System.out.println("fall");
} else {
System.out.println("winter");
}
}
}
ks2m