結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  Outing_Island | 
| 提出日時 | 2019-06-22 10:23:52 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 437 bytes | 
| コンパイル時間 | 565 ms | 
| コンパイル使用メモリ | 59,228 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-26 08:43:36 | 
| 合計ジャッジ時間 | 1,033 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
#include <iostream>
#include <vector>
//#include <iomanip>
using namespace std;
int main()
{
	const int monthCnt = 12;
	const vector<int> monthDays =
	{
		31, 28, 31, 30, 31, 30,
		31, 31, 30, 31, 30, 31,
	};
	int cnt = 0;
	for (int month = 1; month <= monthCnt; month++)
	{
		for (int day = 1; day <= monthDays.at(month - 1); day++)
		{
			if (month == (day / 10) + (day % 10))
				cnt++;
		}
	}
	cout << cnt << endl;
	return 0;
}
            
            
            
        