結果

問題 No.779 Heisei
ユーザー tagufartv
提出日時 2020-08-28 17:33:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 443 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 29,440 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-13 23:29:09
合計ジャッジ時間 986 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void){
    int Y,M,D;
    scanf("%d %d %d",&Y,&M,&D);
    if(1989<Y<2019){
        printf("Yes");
    }else if(Y==1989){
        if(M>1){
            printf("Yes");
        }else if(D>7){
            printf("Yes");
        }
    }else if(Y==2019){
        if(M<4){
            printf("Yes");
        }else if(M==4 && D<31){
            printf("Yes");
        }
    }else{
        printf("No");
    }
    return 0;
}
0