Wrong Answer
Code
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
void solve(){
int k;
cin>>k;
int mod = k % 3;
if(mod==1){
cout<<"GRB"<<endl;
}
else if(mod==2){
cout<<"GBR"<<endl;
}
else if(mod==0){
cout<<"BGR"<<endl;
}
}
int main(){
int test;
cin>>test;
while(test--){
solve();
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1010 Red Green Blue
- Contest
- Brain booster - 1
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2023-12-31 13:45:37
- Judged At
- 2024-11-11 03:46:34
- Judged By
- Score
- 20
- Total Time
- 4ms
- Peak Memory
- 548.0 KiB