Skip to content

Commit 8ca87b4

Browse files
Create S2_J5.py
1 parent 8771df8 commit 8ca87b4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

2014/Senior Problems/S2_J5.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
num = int(input(''))
2+
list1 = []
3+
ask = input('')
4+
ask2 = input('')
5+
x,y = ask.split(' '),ask2.split(' ')
6+
for i in range(len(x)):
7+
list1.append([x[i],y[i]])
8+
for a in range(num):
9+
for s in list1:
10+
if [s[1],s[0]] in list1 and s[0]!=s[1]:
11+
pass
12+
else:
13+
print('bad')
14+
exit()
15+
print('good')

0 commit comments

Comments
 (0)