結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-01-14 17:31:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 904 ms |
コンパイル使用メモリ | 63,784 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 02:35:53 |
合計ジャッジ時間 | 1,372 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <iostream> using namespace std; void no() { cout << "No" << endl; } void yes() { cout << "Yes" << endl; } int main () { int y, m, d; cin >> y >> m >> d; bool ans = true; if (y < 1989 || y > 2019) no(); else if (y == 1989) { if (m >= 2 || d >= 8) yes(); else no(); } else if (y == 2019) { if (m <= 4) yes(); else no(); } else yes(); }