結果
問題 | No.779 Heisei |
ユーザー | rtia_iidx |
提出日時 | 2019-01-11 21:24:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 1,162 bytes |
コンパイル時間 | 989 ms |
コンパイル使用メモリ | 97,988 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 01:47:57 |
合計ジャッジ時間 | 2,015 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<functional> #include<queue> #include<stack> #include<set> #include<map> #include<unordered_map> #include<climits> #include<cstdlib> #include<cmath> #include<string> #include<iomanip> #include<bitset> using namespace std; #define ll long long int ll const MOD = 1000000007; ll const INF = (long long int)1 << 61; int main(){ cin.tie(0); ios::sync_with_stdio(false); ll y,m,d; cin >> y >> m >> d; if(y > 1989 && y < 2019){ cout << "Yes" << endl; }else if(y < 1989 || y > 2019){ cout << "No" << endl; }else if(y == 1989){ if(m > 1){ cout << "Yes" << endl; }else{ if(d >= 8){ cout << "Yes" << endl; }else{ cout << "No" << endl; } } }else{ if(m < 4){ cout << "Yes" << endl; }else if(m == 4){ if(d <= 30){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }else{ cout << "No" << endl; } } return 0; }