BOJ - 18245 - 이상한 나라의 암호

Updated:

def solution():
    idx = 2
    while True:
        word = str(input())
        if word == "Was it a cat I saw?":
            break
        print(word[::idx])
        idx += 1
solution()

https://www.acmicpc.net/problem/18245

Categories:

Updated:

Leave a comment