結果
問題 |
No.779 Heisei
|
ユーザー |
![]() |
提出日時 | 2023-07-29 11:31:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 1,000 ms |
コード長 | 499 bytes |
コンパイル時間 | 680 ms |
コンパイル使用メモリ | 102,996 KB |
最終ジャッジ日時 | 2025-02-15 20:55:32 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<set> #include<bitset> #include<math.h> #include<map> #include<queue> #include<iomanip> using namespace std; int main(){ int y, m, d; cin >> y >> m >> d; if (y < 1989 || y > 2019) cout << "No" << endl; else if (y == 1989){ if (m == 1 && d < 8) cout << "No" << endl; else cout << "Yes" << endl; } else if (y == 2019 && m > 4) cout << "No" << endl; else cout << "Yes" << endl; }