2 solutions

  • 1
    @ 2025-12-3 18:01:10
    #include<bits/stdc++.h>
    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
      @ 2025-5-20 17:48:10
      #include<bits/stdc++.h>
      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

      Information

      ID
      850
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      10
      Tags
      # Submissions
      4
      Accepted
      4
      Uploaded By