/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 14ms 2.961 MiB
#2 Accepted 15ms 3.102 MiB
#3 Accepted 18ms 2.926 MiB
#4 Accepted 19ms 3.066 MiB
#5 Accepted 19ms 3.129 MiB

Code

for _ in range(int(input())):
    k = int(input())
    rgb = ["RGB","GRB","GBR","BGR","BRG","RBG"]
    if k%6 == 0:
        print(rgb[0])
    else:
        print(rgb[k%6])

Information

Submit By
Type
Submission
Problem
P1010 Red Green Blue
Language
Python 3 (Python 3.12.3)
Submit At
2024-01-06 20:14:26
Judged At
2024-11-11 03:43:46
Judged By
Score
100
Total Time
19ms
Peak Memory
3.129 MiB