結果

問題 No.2350 Four Seasons
ユーザー Maeda
提出日時 2025-08-25 17:49:31
言語 Java
(openjdk 23)
結果
AC  
実行時間 154 ms / 2,000 ms
コード長 398 bytes
コンパイル時間 2,584 ms
コンパイル使用メモリ 76,556 KB
実行使用メモリ 46,592 KB
最終ジャッジ日時 2025-08-25 17:49:37
合計ジャッジ時間 5,222 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		if(n == 12 || n == 1 || n == 2){
			System.out.println("winter");
		}else if(n==3||n==4||n==5){
			System.out.println("spring");
		}else if(n==6||n==7||n==8){
			System.out.println("summer");
		}else{
			System.out.println("fall");
		}
    }
}
0