結果

問題 No.188 HAPPY DAY
ユーザー youthfuldays072youthfuldays072
提出日時 2018-06-17 00:29:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 1,772 ms
コンパイル使用メモリ 71,248 KB
実行使用メモリ 48,848 KB
最終ジャッジ日時 2023-09-13 06:17:20
合計ジャッジ時間 2,263 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Main{
	int[] L;
	int N;
	long K;

	public static void main(String[] args) {
		Main main=new Main();
		main.run();
	}

	void run() {

		int[] date= {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

		int res=0;
		for(int i=0;i<12;i++) {
			for(int j=1;j<=date[i];j++) {

				if(i==(j/10+j%10)) {
					res++;
				}

			}
		}

		System.out.println(res);
	}

}

0