結果

問題 No.188 HAPPY DAY
ユーザー RyoooooogaRyooooooga
提出日時 2015-07-19 21:42:15
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 2,066 ms
コンパイル使用メモリ 51,172 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-29 02:48:50
合計ジャッジ時間 2,775 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int days[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
	int cnt = 0;
	for(int i=1; i<=12; i++) {
		int m = (i%10) + (i/10);
		for(int j=1; j<=days[i-1]; j++) {
			int d = (j%10) + (j/10);
			cnt += m == d;
		}
	}
	cout << cnt << endl;
}
0