結果

問題 No.2842 Birthday
ユーザー Takuto-OnikuboTakuto-Onikubo
提出日時 2024-08-23 21:02:48
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 501 bytes
コンパイル時間 2,067 ms
コンパイル使用メモリ 200,204 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-23 21:02:51
合計ジャッジ時間 2,532 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, a, b) for(ll i = a; i < b; ++i)
#define rrep(i, a, b) for(ll i = a; i >= b; --i)
constexpr ll inf = 4e18;
struct SetupIO {
    SetupIO() {
        ios::sync_with_stdio(0);
        cin.tie(0);
        cout << fixed << setprecision(30);
    }
} setup_io;

int main(void) {
    int m, d;
    cin >> m >> d;

    if(m > 8 or (m == 8 and d >= 22)) cout << 24 << '\n';
    else cout << 23 << '\n';
}
0