結果
問題 | No.779 Heisei |
ユーザー |
|
提出日時 | 2019-09-29 20:22:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 419 bytes |
コンパイル時間 | 909 ms |
コンパイル使用メモリ | 89,740 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 04:36:20 |
合計ジャッジ時間 | 1,470 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include<iostream> #include<algorithm> #include<cmath> #include<iomanip> #include<vector> #include<map> #include<queue> using namespace std; typedef long long ll; const int MOD=1e9+7; int main() { int y,m,d; cin >> y >> m >> d; if(y>=1990&&y<=2018) { cout << "Yes" << endl; } else if((y==1989&&(m>=2||d>=8))||(y==2019&&m<=4)) { cout << "Yes" << endl; } else { cout << "No" << endl; } }