結果
問題 | No.188 HAPPY DAY |
ユーザー | AQUA16573837 |
提出日時 | 2018-03-13 00:08:08 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 34,892 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-04-27 16:21:12 |
合計ジャッジ時間 | 557 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ソースコード
#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++; }