/ SeriousOJ /

Record Detail

Compile Error


  

Code

#include <iostream>
#include <string>

using namespace std;

string ans[] = { "RGB","GRB","GBR","BGR","BRG","RBG" };

int main()
{
    int t, k;
	cin >> t;
	while (t-- && cin >> n)
	{
		cout << ans[n % 7] << "\n";
	}
}

Information

Submit By
Type
Pretest
Problem
P1010 Red Green Blue
Language
C++17 (G++ 13.2.0)
Submit At
2023-12-10 18:24:02
Judged At
2023-12-10 18:24:02
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes