add 1920.py & complete 1259.py
This commit is contained in:
10
zeta_python/1920.py
Normal file
10
zeta_python/1920.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
N = int(input())
|
||||||
|
A = list(map(int, input().split()))
|
||||||
|
M = int(input())
|
||||||
|
K = list(map(int, input().split()))
|
||||||
|
|
||||||
|
for k in K:
|
||||||
|
if k in A:
|
||||||
|
print(1)
|
||||||
|
else:
|
||||||
|
print(0)
|
||||||
9
zeta_python/completed/1259.py
Normal file
9
zeta_python/completed/1259.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
t = input()
|
||||||
|
while t != "0":
|
||||||
|
t_r = int(t[::-1])
|
||||||
|
t_i = int(t)
|
||||||
|
if t_r == t_i:
|
||||||
|
print("yes")
|
||||||
|
else:
|
||||||
|
print("no")
|
||||||
|
t = input()
|
||||||
Reference in New Issue
Block a user