結果
問題 |
No.779 Heisei
|
ユーザー |
|
提出日時 | 2019-09-29 20:20:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 425 bytes |
コンパイル時間 | 864 ms |
コンパイル使用メモリ | 90,220 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-03 04:36:18 |
合計ジャッジ時間 | 1,593 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 10 |
ソースコード
#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 << "Heisei" << endl; } else if((y==1989&&(m>=2||d>=8))||(y==2019&&m<=4)) { cout << "Heisei" << endl; } else { cout << "No" << endl; } }