Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
T = int(input())
cnt = 1
for _ in range(T):
size = int(input())
L = input()
result = ""
for l in L:
result += "S" if l == "E" else "E"
print("Case #"+str(cnt)+":", result)
cnt += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.