⌨️

[AtCoder]ABC-344|B - Delimiter

2024/03/27に公開

設問ページ

提出結果

def getInt():
    return int(input())


def main():

    a = []
    while True:
        n = getInt()
        a.append(n)
        if n == 0:
            break

    a.reverse()
    for i in a:
        print(i)


if __name__ == "__main__":
    main()

Discussion