/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 540.0 KiB

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 % 7] << "\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:25:24
Judged At
2023-12-10 18:25:24
Judged By
Score
10
Total Time
2ms
Peak Memory
540.0 KiB