結果
| 問題 | No.779 Heisei | 
| コンテスト | |
| ユーザー |  m1025o1184t | 
| 提出日時 | 2019-12-07 03:26:56 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 599 bytes | 
| コンパイル時間 | 1,656 ms | 
| コンパイル使用メモリ | 165,260 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-24 06:38:37 | 
| 合計ジャッジ時間 | 2,606 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 WA * 10 | 
ソースコード
#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;
}
            
            
            
        