結果
| 問題 | No.2842 Birthday |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-23 21:02:48 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 501 bytes |
| 記録 | |
| コンパイル時間 | 1,909 ms |
| コンパイル使用メモリ | 191,524 KB |
| 最終ジャッジ日時 | 2025-02-23 23:22:02 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#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';
}