結果

問題 No.779 Heisei
ユーザー proribone
提出日時 2019-06-04 18:14:57
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 350 bytes
コンパイル時間 1,049 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 05:48:28
合計ジャッジ時間 1,071 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(){
  int y,m,d;
  scanf("%d%d%d",&y,&m,&d);
  if(y<2019&&1989<y){
    printf("Yes");
  }else if(y==2019){
    if(4<m){
      printf("No");
    }else{
      printf("Yes");
    }
  }else if(y==1989){
    if(m==1&&d<8){
      printf("No");
    }else{
      printf("Yes");
    }
  }else{
    printf("No");
  }
    return 0;
}
0