結果

問題 No.779 Heisei
ユーザー NRT
提出日時 2019-01-26 15:22:14
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 667 bytes
コンパイル時間 746 ms
コンパイル使用メモリ 54,480 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 04:13:18
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int Year , Month , Day;
    cin >> Year >> Month >> Day;
    
    if(Year < 1989 || Year > 2019){
        cout << "No" << endl;
    }else if(Year == 1989){
        if(Month == 1){
            if(Day < 8){
                cout << "No" << endl;
            }else{
                cout << "Yes" << endl;
            }
        }else if(Month > 1){
            cout << "Yes" << endl;
        }
    }else if(Year == 2019){
        if(Month > 4){
            cout << "No" << endl;
        }else{
            cout << "Yes" << endl;
        }
    }else{
        cout<< "Yes" << endl;
    }
}
0