← Back to List

5300번: Fill the Rowboats! ↗

Solutions

Python 3
138 B | 138 chars
n = int(input())

for i in range(1, n + 1):
    print(i, end=" ")
    if i % 6 == 0:
        print(end="Go! ")

if n % 6:
    print("Go!")