結果

問題 No.2842 Birthday
ユーザー ochiaigawa
提出日時 2024-08-23 21:49:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 395 bytes
コンパイル時間 2,252 ms
コンパイル使用メモリ 193,028 KB
最終ジャッジ日時 2025-02-23 23:40:16
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
using namespace std;
int main() {
  cin.tie(0); cout.tie(0);
  ios::sync_with_stdio(false);
  int M, D;
  cin >> M >> D;
  if(M > 8) {
    cout << 24 << '\n';
  } else if(M < 8) {
    cout << 23 << '\n';
  } else if(D >= 22) {
    cout << 24 << '\n';
  } else {
    cout << 23 << '\n';
  }
  return 0;
}
0