题意&思路:
在 年开始举办线下,此后每年一届。
在第 届,即 年开始举办线上,此后每年一届。
特殊的,第 届,即 年未举办线上。
故特判,只要年份在 及之后且不为 年,就输出 Yes,否则输出 No。
代码:
#include <bits/stdc++.h>
using namespace std;
signed main() {
int x; cin >> x;
cout << (x >= 2019 && x != 2022 ? "Yes" : "No");
return 0;
}