結果
問題 | No.2842 Birthday |
ユーザー | bugAboo |
提出日時 | 2024-08-24 14:02:49 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 654 ms |
コンパイル使用メモリ | 68,084 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-08-24 14:02:51 |
合計ジャッジ時間 | 1,635 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; } }