結果
問題 |
No.779 Heisei
|
ユーザー |
![]() |
提出日時 | 2019-06-06 01:58:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 577 bytes |
コンパイル時間 | 835 ms |
コンパイル使用メモリ | 82,136 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 05:48:54 |
合計ジャッジ時間 | 1,559 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<vector> #include<string> #include<sstream> #include<cmath> #include<numeric> #include<map> #include<stack> #include<queue> using namespace std; long long mod = 1e9 + 7; int main(void) { int y, m, d; cin >> y >> m >> d; if(1989 <= y && y <= 2019) { if(y == 2019 && m >= 5) { cout << "No" << endl; }else if(y == 1989 && m == 1 && d < 8){ cout << "No" << endl; }else{ cout << "Yes" << endl; } }else{ cout << "No" << endl; } return 0; } // EOF