Wrong Answer
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