結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
|
提出日時 | 2025-07-16 15:27:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 1,757 ms |
コンパイル使用メモリ | 198,084 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-16 15:27:38 |
合計ジャッジ時間 | 2,413 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { set<int> short_mo = {4, 6, 9, 11}; int cnt = 0; for (int mm = 1; mm <= 12; mm++) { for (int dd = 1; dd <= 31; dd++) { if (mm == 2 && dd > 28) continue; if (short_mo.count(mm) && dd == 31) continue; if (mm == dd / 10 + dd % 10) cnt++; } } cout << cnt << endl; return 0; }