結果

問題 No.779 Heisei
ユーザー akinyan
提出日時 2022-09-03 10:27:31
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 1,024 bytes
コンパイル時間 3,001 ms
コンパイル使用メモリ 242,460 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 21:59:44
合計ジャッジ時間 3,699 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ch = char;
using ll = long long;
using ld = long double;
using db = double;
using st = string;
using vdb = vector<db>;
using vvdb = vector<vdb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vvvl = vector<vvl>;
using vd = vector<ld>;
using vvd = vector<vd>;
using vs = vector<st>;
using vvs = vector<vs>;
using vc = vector<ch>;
using vvc = vector<vc>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vvvb = vector<vvb>;
const ll mod = 998244353;
const ll MOD = 1000000007;
using vp = vector<pair<ll,ll>>;
#define fi first
#define se second

int main(){
  ll a,b,c;
  cin>>a>>b>>c;
  if(1990<=a&&a<=2018){
    cout<<"Yes"<<endl;
  }
  else if(a==1989){
    if(b>=2){
      cout<<"Yes"<<endl;
    }
    else{
      if(c>=8){
        cout<<"Yes"<<endl;
      }
      else{
        cout<<"No"<<endl;
      }
    }
  }
  else if(a==2019){
    if(b>=5){
      cout<<"No"<<endl;
    }
    else{
      cout<<"Yes"<<endl;
    }
  }
  else{
    cout<<"No"<<endl;
  }
}
0