結果
問題 | No.2842 Birthday |
ユーザー |
![]() |
提出日時 | 2024-06-04 03:17:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 615 ms |
コンパイル使用メモリ | 65,900 KB |
最終ジャッジ日時 | 2025-02-21 19:25:16 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <iostream> using namespace std; int main() { int M, D; cin >> M >> D; if (M <= 7) { cout << 23 << endl; } else if (M == 8) { if (D <= 21) { cout << 23 << endl; } else { cout << 24 << endl; } } else { cout << 24 << endl; } }