結果
| 問題 | No.2842 Birthday |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-23 21:01:00 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 1,003 ms |
| コンパイル使用メモリ | 210,396 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-07-05 12:02:01 |
| 合計ジャッジ時間 | 2,244 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int test = 1;
// cin >> test;
while(test--){
int M,D; cin >> M >> D;
if(M < 8 || (M == 8 && D < 22)) cout << 23 << endl;
else cout << 24 << endl;
}
}