結果

問題 No.779 Heisei
ユーザー sorag
提出日時 2022-08-06 10:12:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 539 bytes
コンパイル時間 663 ms
コンパイル使用メモリ 76,892 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 05:52:44
合計ジャッジ時間 1,507 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>
#include<string>
#include<algorithm>
#include<math.h>
#define ll long long
#define P pair<int,int>
#define lP pait<ll,ll>
using namespace std;
int main() {
    int l,m,n;
    bool f=0;
    cin>>l>>m>>n;
    if(l==1989){
        if (m==1 and n<8) f=0;
        else f=1;
    }
    else if(l>1989 and l<2019) f=1;
    else if (l==2019){
        if(m<4) f=1;
        else  if(m==4 and n<=30) f=1;
    }
    
    if(f)  cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}
     


0