結果

問題 No.779 Heisei
ユーザー focus
提出日時 2019-02-07 23:43:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 522 bytes
コンパイル時間 568 ms
コンパイル使用メモリ 71,888 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 05:03:42
合計ジャッジ時間 1,311 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<cstdio>
#include<string>

using namespace std;
using ll = long long;

int main(){ 
        int y,m,d;
        cin >> y >> m >> d;
        if(1990<=y&&y<=2018){
                cout << "Yes";
        }
        else if(y==1989){
                if(m==1&&d<8)   cout << "No";
                else cout << "Yes";
        }
        else if(y==2019&&m<=4){
                cout << "Yes";
        }
        else    cout << "No";
        return 0;
}
0