結果

問題 No.188 HAPPY DAY
ユーザー daradara_sanma
提出日時 2017-07-08 00:10:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 58,324 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-12-31 01:50:47
合計ジャッジ時間 837 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
#include<vector>
using namespace std;

int main() {
	int count = 0;
	int n[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
	for (int i = 1; i < 13; i++)
	{
		for (int k = 1; k <= n[i]; k++)
		{
			int temp = (k / 10) + (k % 10);
			if (i == temp)
			{
				count++;
			}
		}
	}
	cout << count << endl;

	return 0;
}
0