1 solutions

  • 0
    @ 2025-4-30 17:55:09
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
      int d;
      cin>>d;
      if(d<=5&&d>=1){
        cout<<d+2;
      }
      else if(d==6){
        cout<<1;
      }
      else if(d==7){
        cout<<2;
      }
      return 0;
    }
    
    • 1

    Information

    ID
    863
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    10
    Tags
    # Submissions
    3
    Accepted
    1
    Uploaded By