Accepted
Code
#include<iostream>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
int main() {
string a[]={"RGB","GRB","GBR","BGR","BRG","RBG"};
int m,n;
cin>>m;
for(int i=0;i<m;i++){
cin>>n;
cout<<a[n%6]<<endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1010 Red Green Blue
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-06-24 06:07:19
- Judged At
- 2025-06-24 06:07:19
- Judged By
- Score
- 100
- Total Time
- 10ms
- Peak Memory
- 532.0 KiB