From f4f2dfd1f68e12711459f6aca720b9564e234eaa Mon Sep 17 00:00:00 2001 From: yenru0 <36220355+yenru0@users.noreply.github.com> Date: Sat, 13 Feb 2021 19:46:00 +0900 Subject: [PATCH] add 1920.py & complete 1259.py --- zeta_python/1920.py | 10 ++++++++++ zeta_python/completed/1259.py | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 zeta_python/1920.py create mode 100644 zeta_python/completed/1259.py diff --git a/zeta_python/1920.py b/zeta_python/1920.py new file mode 100644 index 0000000..842d799 --- /dev/null +++ b/zeta_python/1920.py @@ -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) \ No newline at end of file diff --git a/zeta_python/completed/1259.py b/zeta_python/completed/1259.py new file mode 100644 index 0000000..a4280ad --- /dev/null +++ b/zeta_python/completed/1259.py @@ -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()