結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-01-11 21:24:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 637 bytes |
コンパイル時間 | 995 ms |
コンパイル使用メモリ | 80,436 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 20:25:41 |
合計ジャッジ時間 | 1,274 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <iostream> #include <vector> #include <map> #include <set> #include <queue> #include <string> #include <iomanip> #include <algorithm> #include <cmath> #include <stdio.h> using namespace std; #define int long long int MOD = 1000000007; signed main() { cin.tie(0); ios::sync_with_stdio(false); int Y, M, D; cin >> Y >> M >> D; bool u = false; bool d = false; if (Y < 2019) { u = true; } else if (Y == 2019) { if (M <= 4)u = true; } if (Y > 1989)d = true; else if (Y == 1989) { if (M > 1)d = true; else if (D >= 8)d = true; } if (u && d) { cout << "Yes" << endl; } else { cout << "No" << endl; } }