結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-03-20 18:28:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 457 bytes |
コンパイル時間 | 1,787 ms |
コンパイル使用メモリ | 164,892 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 05:22:38 |
合計ジャッジ時間 | 2,224 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int y, m, d; int main() { cin >> y >> m >> d; if (y < 1989) { cout << "No" << endl; } else if (y == 1989) { if (m == 1 && d < 8) { cout << "No" << endl; } else { cout << "Yes" << endl; } } else if (y < 2019) { cout << "Yes" << endl; } else if (y == 2019) { if (m < 5) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { cout << "No" << endl; } return 0; }