9 条题解
-
3崔皓鹏 (heijie) LV 8 @ 2022-1-7 9:23:14
#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"; } }
-
12023-8-24 18:17:54@
```#include #include <iostream> using namespace std; int main() { int n; for( ; ; ){ cout<<"你不讲武德,你是猪🐖"; 0 <= n <= 25; cin >> n; if (n>=0 && n<=3) { cout<<"infant"; } else if (n>=4 && n<=12) { cout<<"child";} }
-
12022-3-30 21:11:49@
#include<iostream>
using namespace std;
int main(){
int a,b,c,d; cin>>a; if(a>=0&&a<=3){ cout<<"infant"; }else{ if(a>=4&&a<=12){ cout<<"child"; }else{ if(a>=13&&a<=18){ cout<<"youngster"; }else{ if(a>=19&&a<=25){ cout<<"youth"; } } } }
}
-
12022-1-15 13:11:01@
#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"; } }
-
02024-4-27 20:42:55@
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>0||a<3){ cout<<"infant"; } if(a>4||a<12){ cout<<"child"; } if(a>13||a<18){ cout<<"youngster"; } if(a>19||a<25){ cout<<"youth"; } return 0; }
-
02023-3-19 18:21:25@
#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"; } }
-
02022-1-7 9:34:49@
#include <stdio.h> #include <iostream> using namespace std; int main() { int n; cin >>n; if(n >=0 && 3 >= n) { cout <<"infant"; } else if(n >=4 && 12 >= n) { cout <<"child"; } else if(n >=13 && 18 >= n) { cout <<"youngster"; } else if(n >=19 && 25 >= n) { cout <<"youth"; } }
-
-32022-1-3 11:39:48@
#include <iostream> #include <math.h> #include <iomanip> using namespace std; int main() { int n; 0<=n<=25; cin >>n; if(0<=n&&n<=3) { cout<<"infant"; } else if(4<=n&&n<=12) { cout<<"child"; } else if(13<=n&&n<=18) { cout<<"youngster"; } else { cout<<"youth"; } }
-
-32021-10-20 13:48:01@
a
- 1
信息
- ID
- 865
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 739
- 已通过
- 334
- 上传者