結果

問題 No.188 HAPPY DAY
ユーザー AQUA16573837AQUA16573837
提出日時 2018-03-13 00:09:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 379 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 36,936 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-04-27 16:21:49
合計ジャッジ時間 642 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <algorithm>
#include <deque>
using namespace std;
using ll = long long;

//188
int main() {
	int days[13] = { 0,
		31, 28, 31, 30,
		31, 30, 31, 31,
		30, 31, 30, 31
	};
	int count = 0;
	for (int month = 1; month <= 12; month++)
		for (int day = 1; day <= days[month]; day++)
			if (month == day % 10 + day / 10)
				count++;
	printf("%d\n", count);
}
0