結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
AQUA16573837
|
| 提出日時 | 2018-03-13 00:09:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 1,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 37,072 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-11-15 19:56:33 |
| 合計ジャッジ時間 | 680 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <stdio.h>
#include <algorithm>
#include <deque>
using namespace std;
using ll = long long;
//188
int main() {
int days[13] = { 0,
31, 28, 31, 30,
31, 30, 31, 31,
30, 31, 30, 31
};
int count = 0;
for (int month = 1; month <= 12; month++)
for (int day = 1; day <= days[month]; day++)
if (month == day % 10 + day / 10)
count++;
printf("%d\n", count);
}
AQUA16573837