結果
| 問題 | No.779 Heisei |
| コンテスト | |
| ユーザー |
nyan68682154
|
| 提出日時 | 2019-05-19 20:58:39 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 339µs | |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-19 13:33:59 |
| 合計ジャッジ時間 | 1,940 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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