2 条题解

  • 1
    @ 2025-1-21 11:44:35
    #include<bits/stdc++.h>
    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;
    }
    
    • 0
      @ 2025-10-6 15:53:27

      #include<bits/stdc++.h> using namespace std; int main() { int sb; cin>>sb; if(sb>=0&&sb<4) { cout<<"infant"; } else { if(sb>=4&&sb<13) { cout<<"child"; } else { if(sb>=13&&sb<19) { cout<<"youngster"; } else { if(sb<26) { cout<<"youth"; } } } } return 0; }

      • 1

      信息

      ID
      29
      时间
      1000ms
      内存
      64MiB
      难度
      5
      标签
      递交数
      30
      已通过
      14
      上传者