题解:P11461 Good Luck & Have Fun

· · 题解

题目分析

当 x < 2019 或 x = 2022 时,图灵杯没有线上同步赛,即输出 No,否则输出 Yes。

代码

#include<bits/stdc++.h>
using namespace std;
int x;
int main(){
    cin>>x;
    if(x<2019||x==2022)cout<<"No";
    else cout<<"Yes";
    return 0;
}