結果
| 問題 |
No.2842 Birthday
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-23 21:01:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 309 bytes |
| コンパイル時間 | 2,006 ms |
| コンパイル使用メモリ | 192,216 KB |
| 最終ジャッジ日時 | 2025-02-23 23:20:13 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}