結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-07-17 19:43:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 1,308 ms |
コンパイル使用メモリ | 166,928 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 05:17:39 |
合計ジャッジ時間 | 2,242 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include<bits/stdc++.h> using namespace std; typedef long long ll; signed main(){ ios::sync_with_stdio(false); cin.tie(0); int y,m,d; cin>>y>>m>>d; bool pos=true; if(y>2019 || y<1989){ pos=false; } else if(y==1989){ if(m==1 && d<8){ pos=false; } } else if(y==2019){ if(m>4) pos=false; if(m==4 && d>30) pos=false; } if(pos) cout<<"Yes"<<endl; else cout<<"No"<<endl; }