結果

問題 No.779 Heisei
ユーザー addeight2
提出日時 2019-02-08 10:54:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 395 bytes
コンパイル時間 1,554 ms
コンパイル使用メモリ 158,620 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-06 05:04:28
合計ジャッジ時間 2,582 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
typedef long long ll;
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define REP(i,a) FOR(i,0,a)
	
using namespace std;
ll Y,M,D;
int main(){
	cin>>Y>>M>>D;
	bool ans=false;
	if(Y>1989 && Y<2019){
		ans=true;
	}else if(Y==1989){
		if(M>1 || (D>=8)){
			ans=true;
		}
	}else if (Y==2019){
		if(M<4 || (M==4 && D<=30)){
			ans=true;
		}
	}
	cout<<(ans ? "Yes" : "No")<<endl;
}
0