結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
prog470
|
| 提出日時 | 2019-01-26 15:20:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 1,062 bytes |
| コンパイル時間 | 850 ms |
| コンパイル使用メモリ | 82,480 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 04:12:49 |
| 合計ジャッジ時間 | 1,585 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define REP(i, n, N) for(ll i=(n);i<(N);i++)
#define RREP(i, n, N) for(ll i=(N-1);i>=(n);i--)
#define CK(n, a, b) ((a)<=(n)&&(n)<(b))
#define ALL(v) (v).begin(), (v).end()
#define MCP(a, b) memcpy(b,a,sizeof(b))
#define p(s) cout<<(s)<<endl
#define p2(a, b) cout<<(a)<<" "<<(b)<<endl
typedef long long ll;
using namespace std;
const ll mod = 1e9 + 7;
const ll inf = 1e18;
int Y, M, D;
int main() {
cin>>Y>>M>>D;
bool isHeySay = false;
if(1989 == Y){
if((1 <= M && 8 <= D) || 2 <= M){
isHeySay = true;
}
}else if(1990 <= Y && Y <= 2018){
isHeySay = true;
}else if(Y == 2019){
if((M <= 4 && D <= 30) || M <= 3){
isHeySay = true;
}
}
if (isHeySay){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
}
prog470