Code
#include <iostream>
#include <string>
using namespace std;
string ans[] = { "RGB","GRB","GBR","BGR","BRG","RBG" };
int main()
{
int t, n;
cin >> t;
while (t-- && cin >> n)
{
cout << ans[n % 6] << "\n";
}
return 0;
}
Information
- Submit By
- Type
- Pretest
- Problem
- P1010 Red Green Blue
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2023-12-10 18:28:59
- Judged At
- 2023-12-10 18:28:59
- Judged By
- Score
- 10
- Total Time
- 2ms
- Peak Memory
- 284.0 KiB