結果
| 問題 | No.779 Heisei |
| コンテスト | |
| ユーザー |
Ichimiya
|
| 提出日時 | 2020-06-10 02:21:46 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 455µs | |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 889 ms |
| コンパイル使用メモリ | 179,564 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 14:31:08 |
| 合計ジャッジ時間 | 2,395 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
int main() {
int Y, M, D;
cin >> Y >> M >> D;
string s = "No";
if (Y > 1989 && Y < 2019) {
s = "Yes";
}
else if (Y == 1989) {
if (M > 1) s = "Yes";
else if (D >= 8) s = "Yes";
}
else if (Y == 2019) {
if (M < 4) s = "Yes";
else if (M == 4 && D <= 30) s = "Yes";
}
cout << s << endl;
}
Ichimiya