結果
| 問題 | No.779 Heisei |
| コンテスト | |
| ユーザー |
f843nmfwisfeuw
|
| 提出日時 | 2020-08-18 15:43:12 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 881 bytes |
| 記録 | |
| コンパイル時間 | 529 ms |
| コンパイル使用メモリ | 106,232 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-28 13:46:53 |
| 合計ジャッジ時間 | 1,682 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
#include <bitset>
#include <cassert>
using namespace std;
bool m(int Y, int M, int D) {
if (Y == 1989) {
if (M == 1) {
if (D >= 8) {
return true;
} else {
return false;
}
} else {
return true;
}
} else if (1990 <= Y and Y <= 2018) {
return true;
} else if (Y == 2019) {
if (M <= 4) {
return true;
} else {
return false;
}
} else {
return false;
}
}
int main() {
int Y, M, D;
cin >> Y >> M >> D;
cout << (m(Y, M, D) ? "Yes" : "No") << endl;
return 0;
}
f843nmfwisfeuw