/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 328.0 KiB
#2 Wrong Answer 2ms 324.0 KiB
#3 Wrong Answer 4ms 488.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin >> t;
    for (int i = 0; i < t; i++)
    {
        int x, mod;
        cin >> x;
        mod = x % 3;
        if (mod == 1)
        {
            cout << "GRB" << endl;
        }
        else if (mod == 2)
        {
            cout << "GBR" << endl;
        }
        else
        {
            cout << "BGR" << endl;
        }
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1010 Red Green Blue
Contest
Brain booster - 1
Language
C++20 (G++ 13.2.0)
Submit At
2023-12-31 13:24:59
Judged At
2024-11-11 03:46:43
Judged By
Score
20
Total Time
4ms
Peak Memory
488.0 KiB