結果

問題 No.779 Heisei
ユーザー KKT89
提出日時 2020-06-08 06:53:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 542 bytes
コンパイル時間 1,184 ms
コンパイル使用メモリ 81,960 KB
最終ジャッジ日時 2025-01-11 00:06:36
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <set>
#include <string>
#include <map>
#include <numeric>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int y,m,d; cin >> y >> m >> d;
	if(1990<=y&&y<=2018){
		printf("Yes\n");
	}
	else if(y==1989){
		if(m==1&&d<8){
			printf("No\n");
		}
		else{
			printf("Yes\n");
		}
	}
	else if(y==2019){
		if(m<=4){
			printf("Yes\n");
		}
		else{
			printf("No\n");
		}
	}
	else{
		printf("No\n");
	}
}
0