16 条题解
-
5
#include <stdio.h> #include <iostream> using namespace std; int main() { int n; 0 <= n <= 25; cin >> n; if (n>=0 && n<=3) { cout<<"infant"; } else if (n>=4 && n<=12) { cout<<"child"; } else if (n>=13 && n<=18) { cout<<"youngster"; } else if (n>=19 && n<=25) { cout<<"youth"; } } -
1
#include<iostream> #include<cstdio> #include<cctype> #include<string.h> #include<math.h> #include<cmath> #include<algorithm> #include<iomanip> using namespace std; int main() { int n; cin>>n; if(n>=0&&n<=3) { cout<<"infant"; } else if(n>=4&&n<=12) { cout<<"child"; } else if(n>=13&&n<=18) { cout<<"youngster"; } else if(n>=19&&n<=25) { cout<<"youth"; } return 0; } -
-1
-
-1
- 1
信息
- ID
- 865
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 990
- 已通过
- 481
- 上传者