結果

問題 No.779 Heisei
ユーザー sanyonfu
提出日時 2019-06-06 20:32:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 758 bytes
コンパイル時間 1,280 ms
コンパイル使用メモリ 158,640 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 05:49:10
合計ジャッジ時間 2,090 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;


int main(){
        int Y,M,D;
        cin >> Y >> M >> D;

        bool h = 0;

        if(Y>1989&&2019>Y){
                h = 1;
        }else{
                if(Y==1989){
                        if(M>1){
                                h = 1;
                        }else{
                                if(D>=8){
                                        h =1;
                                }
                        }
                }else if(Y == 2019){
                        if(M<=4){
                                h=1;
                        }
                }
        }
        if(h==1){
                cout << "Yes" << endl;
        }else{
                cout << "No" << endl;
        }
}
0