1 solutions

  • 1
    @ 2025-12-3 13:09:20
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n;
        cin>>n;
        if(n%3==1){
            cout<<1;
        }
        else if(n%3==2){
            cout<<2;
        }
        else{
            cout<<1;
        }
        return 0;
    }
    
    • 1

    Information

    ID
    703
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    5
    Tags
    # Submissions
    44
    Accepted
    18
    Uploaded By