結果

問題 No.188 HAPPY DAY
ユーザー unno211unno211
提出日時 2020-12-10 15:55:06
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 532 bytes
コンパイル時間 1,556 ms
コンパイル使用メモリ 168,540 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-20 00:45:48
合計ジャッジ時間 1,967 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(void)
{
  vector<int> num = {1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 3, 4};
  int ans = 0;
  for (int i = 1; i <= 12; i++)
  {
    for (int j = 0; j < num.size(); j++)
    {
      if (j >= 29 && i == 2)
        break;
      if (j >= 31 && i == 4 || j >= 31 && i == 6 || j >= 31 && i == 9 || j >= 31 && i == 11)
        break;
      if (i == num[j])
      {
        ans++;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
0