結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  hanorver | 
| 提出日時 | 2015-08-25 10:51:25 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 403 bytes | 
| コンパイル時間 | 710 ms | 
| コンパイル使用メモリ | 58,460 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-30 20:32:45 | 
| 合計ジャッジ時間 | 1,044 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 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 == day[i] % 10 + day[i] / 10) count++;
		}
	}
	std::cout << count << std::endl;
}
            
            
            
        