結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-11 00:14:44 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 1,000 ms |
| コード長 | 472 bytes |
| コンパイル時間 | 3,731 ms |
| コンパイル使用メモリ | 265,232 KB |
| 最終ジャッジ日時 | 2025-01-14 09:21:25 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <boost/date_time/gregorian/gregorian.hpp>
using namespace boost::gregorian;
bool isHeisei(int y, int m, int d) {
const date s(1989, 1, 8);
const date e(2019, 4, 30);
date t(y, m, d);
return (s <= t && t <= e);
}
void solve() {
int y, m, d;
cin >> y >> m >> d;
cout << ((isHeisei(y, m, d)) ? "Yes" : "No") << endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
solve();
getchar();
}