結果
問題 | No.2842 Birthday |
ユーザー |
![]() |
提出日時 | 2024-08-23 21:02:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 665 bytes |
コンパイル時間 | 1,978 ms |
コンパイル使用メモリ | 190,128 KB |
最終ジャッジ日時 | 2025-02-23 23:21:43 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define ALL(v) v.begin(),v.end() #define dbg(x) cerr << #x << ": " << (x) << endl; template<class F, class S> ostream& operator<<(ostream& os, pair<F,S>& p) { os << '(' << p.first << ',' << p.second << ')'; return os; } template<class Iter> void print(Iter beg, Iter end) { for (Iter itr = beg; itr != end; ++itr) { cerr << *itr << ' '; } cerr << '\n'; } inline bool naraba(bool a, bool b) { return (!a || b); } int M,D; int main() { cin >> M >> D; if (M > 8 || (M==8 && D >= 22)) { cout << 24 << '\n'; } else { cout << 23 << '\n'; } }