結果
問題 | No.779 Heisei |
ユーザー | coco18000 |
提出日時 | 2019-01-11 21:23:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 656 bytes |
コンパイル時間 | 1,437 ms |
コンパイル使用メモリ | 166,216 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 20:25:08 |
合計ジャッジ時間 | 2,145 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> pll; #define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i)) #define REP(i, n) FOR(i, n, 0) #define OF64 std::setprecision(10) const ll MOD = 1000000007; const ll INF = (ll)1e15; int main() { int Y, M, D; cin >> Y >> M >> D; string a = "Yes"; if (Y > 2019 || Y < 1988) a = "No"; if (Y == 2019) { if (M > 4) { a = "No"; } } else if (Y == 1989) { if (M == 1) { if (D < 8) a = "No"; } } cout << a << endl; return 0; }