Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
73423 | 王馨桐 | 参赛组别推荐 | C++ | Accepted | 1 MS | 272 KB | 327 | 2024-05-18 20:20:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin >>a; if (a<8){ cout <<"You are too young!"; } else if(a>=8&&a<=12){ cout <<"Welcome to Junior Class!"; } else if(a>=13&&a<=18){ cout <<"Welcome to Senior Class!"; } else if(a>=19){ cout <<"You are too old!"; } return 0; }