/ SeriousOJ /

Record Detail

Accepted


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

Code

#include<bits/stdc++.h>
using namespace std;
void solve(int i,int t)
{
    string s[]={"RGB","GRB","GBR","BGR","BRG","RBG"};
    int k; cin>>k;
    k %=6;
    if(i!=t) cout<<s[k]<<endl;
	else cout<<s[k];
}

int main()
{
	int t; cin>>t;
	for(int i=1;i<=t;i++)
	{
		solve(i,t);
	}
}

Information

Submit By
Type
Pretest
Problem
P1010 Red Green Blue
Language
C++17 (G++ 13.2.0)
Submit At
2023-12-10 18:29:48
Judged At
2023-12-10 18:29:48
Judged By
Score
10
Total Time
1ms
Peak Memory
540.0 KiB