Time Exceeded
Code
t=int(input())
for _ in range (t):
n=int(input())
p = ['R', 'G', 'B']
for i in range(n):
if(i%2==0) :
f=p[1]+p[0]+p[2]
p=list(f)
else :
f=p[0]+p[2]+p[1]
p=list(f)
print(f)
Information
- Submit By
- Type
- Submission
- Problem
- P1010 Red Green Blue
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-02-26 06:40:19
- Judged At
- 2025-02-26 06:40:19
- Judged By
- Score
- 60
- Total Time
- ≥1100ms
- Peak Memory
- ≥3.109 MiB