Wrong Answer
Code
l = "RGB"
t = int(input())
for i in range(t):
k = int(input())
d = {1: "GRB", 2: "GBR"}
if k % 2 == 0:
for z in range(k):
l = l[-1] + l[:-1]
else:
j = (2 * (int(k / 2)))
for a in range(j):
l = l[-1] + l[:-1]
l = l[-1] + l[:-1]
print(d.get(k, l))
l = "RGB"
Information
- Submit By
- Type
- Submission
- Problem
- P1010 Red Green Blue
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-01-01 14:45:59
- Judged At
- 2024-11-11 03:44:41
- Judged By
- Score
- 0
- Total Time
- 14ms
- Peak Memory
- 3.125 MiB