結果

問題 No.2842 Birthday
コンテスト
ユーザー テナガザル
提出日時 2024-08-23 21:02:37
言語 C++23
(gcc 13.3.0 + boost 1.89.0)
結果
WA  
実行時間 -
コード長 211 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 809 ms
コンパイル使用メモリ 91,092 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-23 21:02:39
合計ジャッジ時間 1,478 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
  int m, d;
  cin >> m >> d;
  int ans = 23;
  if (m > 8) ++ans;
  else if (d >= 22) ++ans;
  cout << ans << endl;
}
0