9 条题解

  • 1
    @ 2022-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";
        }
    
    }
    

    信息

    ID
    865
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    746
    已通过
    339
    上传者