/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 14ms 3.07 MiB
#2 Wrong Answer 14ms 3.129 MiB

Code

l="RGB"
t=int(input())
if 1<=t<=1000:
    for i in range(t):
        k=int(input())
        if 1<=k<=10**7:
            if k==1:
                print("GRB")
            elif k%2==0:
                for z in range(k):
                    l = l[1] + l[0] + l[2]
                    l = l[::-1]
                print(l)
            elif k%2 != 0:
                j=(2*(int(k/2)))
                for a in range(j):
                    l = l[1] + l[0] + l[2]
                    l = l[::-1]
                l = l[1] + l[0] + l[2]
                print(l)

















Information

Submit By
Type
Submission
Problem
P1010 Red Green Blue
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 15:37:00
Judged At
2024-11-11 03:45:32
Judged By
Score
0
Total Time
14ms
Peak Memory
3.129 MiB