結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
nyan68682154
|
| 提出日時 | 2019-05-19 20:58:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 443 bytes |
| コンパイル時間 | 640 ms |
| コンパイル使用メモリ | 60,060 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 05:47:27 |
| 合計ジャッジ時間 | 1,434 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include<iostream>
#include<string>
#include<math.h>
#include<stdlib.h>
#include<string>
#include<cstdio>
#include<stack>
using namespace std;
int main() {
int y, m, d;
cin >> y >> m >> d;
if ((y < 2019)&&(1989 <= y)) {
if ((y == 1989)&&(m == 1)&&(d<8)) {
cout << "No";
}
else {
cout << "Yes";
}
}
else if(y == 2019) {
if (m <= 4) {
cout << "Yes";
}
else {
cout << "No";
}
}
else {
cout << "No";
}
}
nyan68682154