結果

問題 No.188 HAPPY DAY
ユーザー daradara_sanmadaradara_sanma
提出日時 2017-07-08 00:10:29
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 57,624 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-08-29 22:38:34
合計ジャッジ時間 833 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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