結果
問題 | No.2842 Birthday |
ユーザー |
![]() |
提出日時 | 2024-08-23 21:01:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 20 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 1,978 ms |
コンパイル使用メモリ | 191,652 KB |
最終ジャッジ日時 | 2025-02-23 23:21:13 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; const int INF = 1e9 + 10; const ll INFL = 4e18; int main() { int M, D; cin >> M >> D; if (M == 8) { puts(D >= 22 ? "24" : "23"); } else { puts(M > 8 ? "24" : "23"); } }