1 solutions

  • 0
    @ 2026-10-18 13:27:38
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n;
        cin>>n;
        for(int i=1;i<=n;i++)
        {
            int x;
            cin>>x;
            if(x%6==0) cout<<'S'<<endl;
            else if(x%2==0 && x%3!=0) cout<<'E'<<endl;
            else if(x%2!=0 && x%3==0) cout<<'T'<<endl;
            else cout<<'O'<<endl;
        }
        return 0;
    }
    

    Information

    ID
    3607
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    6
    Accepted
    5
    Uploaded By