結果
問題 |
No.779 Heisei
|
ユーザー |
|
提出日時 | 2019-10-01 00:49:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 827 bytes |
コンパイル時間 | 504 ms |
コンパイル使用メモリ | 83,752 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-03 05:32:00 |
合計ジャッジ時間 | 1,304 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#define _USE_MATH_DEFINES #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <string> #include<math.h> #include<iomanip> #include<stdio.h> #include <stdlib.h> #include<stdio.h> #include <queue> #include<map> #include <sstream> #include<set> #include<stack> //#include<bits/stdc++.h> using namespace std; int main() { int y, m, d; cin >> y >> m >> d; if (y >= 1990 && y <= 2018) { cout << "Yes" << endl; return 0; } if (y <= 1988 || y >= 2020) { cout << "No" << endl; return 0; } if (y == 1989) { if (m > 1) { cout << "Yes" << endl; return 0; } if(d>=8) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; } if (m <= 4) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }