結果

問題 No.188 HAPPY DAY
ユーザー yuuki121yuuki121
提出日時 2020-12-18 23:59:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 190 ms / 1,000 ms
コード長 411 bytes
コンパイル時間 3,075 ms
コンパイル使用メモリ 73,408 KB
実行使用メモリ 57,468 KB
最終ジャッジ日時 2023-10-21 08:28:16
合計ジャッジ時間 4,086 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.Calendar;

public class Main {

	public static void main(String[] args) {
		int count = 0;

		Calendar cal = Calendar.getInstance();

		for (int month = 0; month < 12; month++) {
			cal.set(2015, month, 1);

			for (int day = 0; day < cal.getActualMaximum(Calendar.DATE); day++) {
				count = (month == (day % 10) + (day / 10)) ? count + 1 : count;
			}
		}

		System.out.println(count);

	}

}
0