結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  hanorver | 
| 提出日時 | 2015-08-25 10:52:38 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 393 bytes | 
| コンパイル時間 | 672 ms | 
| コンパイル使用メモリ | 58,484 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-30 20:32:51 | 
| 合計ジャッジ時間 | 1,053 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
#include<iostream>
#include<vector>
int main() {
	std::vector<int> day(13, 0);
	for (int i = 1; i < 13; i++) {
		if (i == 2)day[i] = 28;
		else if (i == 4 || i == 6 || i == 9 || i == 11) day[i] = 30;
		else day[i] = 31;
	}
	int count = 0;
	for (int i = 1; i < 13; i++) {
		for (int j = 1; j <= day[i]; j++) {
			if (i == j % 10 + j / 10) count++;
		}
	}
	std::cout << count << std::endl;
}
            
            
            
        