1 solutions

  • -2
    @ 2025-4-23 18:20:53
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
      int x;
      cin>>x;
      if(x%2==0&&(x>4&&x<=12)){
        cout<<1<<" ";
      }
      else{
        cout<<0<<" ";
      }
      if(x%2==0||(x>4&&x<=12)){
        cout<<1<<" ";
      }
      else if(x%2==0&&(x>4&&x<=12)){
        cout<<1<<" ";
      }
      else{
        cout<<0<<" ";
      }
      if(x%2==0&&(x>4&&x<=12)){
        cout<<0<<" ";
      }
      else if(x%2==0||(x>4&&x<=12)){
        cout<<1<<" ";
      }
      else{
        cout<<0<<" ";
      }
      if(x%2!=0&&(x>4&&x<=12)){
        cout<<0<<" ";
      }
      else if(x%2==0||(x>4&&x<=12)){
        cout<<0<<" ";
       }
      else{
        cout<<1<<" ";
      }
      return 0;
    }
    
    • 1

    Information

    ID
    1337
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    (None)
    # Submissions
    52
    Accepted
    30
    Uploaded By