結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
m1025o1184t
|
| 提出日時 | 2019-12-07 03:28:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 600 bytes |
| コンパイル時間 | 2,030 ms |
| コンパイル使用メモリ | 165,288 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 06:40:10 |
| 合計ジャッジ時間 | 2,719 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define all(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int Y, M, D;
cin >> Y >> M >> D;
if (Y < 1989 || Y > 2019) {
cout << "No" << endl;
}
else if (Y == 1989) {
if (M < 1) {
cout << "No" << endl;
}
else if (M == 1 && D < 8) {
cout << "No" << endl;
}
else cout << "Yes" << endl;
}
else if (Y == 2019) {
if (M > 4) {
cout << "No" << endl;
}
else cout << "Yes" << endl;
}
else {
cout << "Yes" << endl;
}
return 0;
}
m1025o1184t