結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  int y,m,d;cin>>y>>m>>d;
  string res = "No";
  if(y > 1989 && 2019 > y)res="Yes";
  else if(y == 1989){
    if(!(m == 1 && d < 8))res="Yes";
  }else if(y == 2019){
    if(m <= 4)res="Yes";
  }
  cout << res << endl;
}
0