結果
問題 | No.2842 Birthday |
ユーザー |
![]() |
提出日時 | 2024-08-23 21:03:12 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 1,161 ms |
コンパイル使用メモリ | 91,080 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-23 21:03:14 |
合計ジャッジ時間 | 1,661 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>using namespace std;int main(){int m, d;cin >> m >> d;int ans = 23;if (m > 8) ++ans;else if (m == 8 && d >= 22) ++ans;cout << ans << endl;}