Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1537 | 邓小龙 | 09能否赴约 | C++ | Accepted | 0 MS | 264 KB | 530 | 2023-10-14 18:00:02 |
/* switch(表达式){ case 表达式1:->if() case 表达式2:->if else() ````` ->if else() ````` ````` default: ->else } */ # include<iostream> using namespace std; int main(){ int a; cin>>a; switch(a){ case 1: case 3: case 5: cout<<"NO"<<endl; break; case 2: case 4: case 6: case 7: cout<<"YES"<<endl; } return 0; }