From f11de2cae3c3df10ebc3a49e4168397731e4eb31 Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Wed, 27 Sep 2023 18:10:28 -0300 Subject: [PATCH] Solve Growing Sequences in python --- solutions/beecrowd/1146/1146.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 solutions/beecrowd/1146/1146.py diff --git a/solutions/beecrowd/1146/1146.py b/solutions/beecrowd/1146/1146.py new file mode 100644 index 00000000..cec48938 --- /dev/null +++ b/solutions/beecrowd/1146/1146.py @@ -0,0 +1,12 @@ +import sys + +first = True + +for line in sys.stdin: + if first: + first = False + else: + print('') + + x = int(line) + print(' '.join(str(item) for item in range(1, x + 1)), end='')