結果

問題 No.779 Heisei
ユーザー Ichimiya
提出日時 2020-06-10 02:21:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 377 bytes
コンパイル時間 1,537 ms
コンパイル使用メモリ 165,916 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 16:38:37
合計ジャッジ時間 2,469 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0