Skip to content

Commit c52ca96

Browse files
authored
Difficulty: Easy
1 parent 286edf4 commit c52ca96

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Symmetric Order/symmetricorder.py

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
'''
2+
https://open.kattis.com/problems/symmetricorder
3+
'''
4+
5+
setno = 1
6+
while True:
7+
a = int(input())
8+
if a == 0:
9+
break
10+
else:
11+
current_set = []
12+
for i in range(a):
13+
name = input()
14+
current_set.append(name)
15+
ans_set = current_set[::2]+current_set[1::2][::-1]
16+
print("SET {}".format(setno))
17+
for j in ans_set:
18+
print(j)
19+
setno+=1
20+
21+

0 commit comments

Comments
 (0)