結果
問題 |
No.2842 Birthday
|
ユーザー |
|
提出日時 | 2024-08-23 21:29:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 1,568 ms |
コンパイル使用メモリ | 165,688 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-23 21:29:34 |
合計ジャッジ時間 | 2,435 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include "bits/stdc++.h" using namespace std; #define int long long void solve(){ int a, b; cin >> a >> b; int ans = 23; if (a > 8 or (a == 8 and b >= 22)) ans++; cout << ans; } signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int T = 1; // cin >> T; while(T--) solve(); return 0; }