From 52ece06ea44688a8bee5837cb48c26a345bd41e0 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Wed, 3 Jul 2024 23:57:11 +0900 Subject: [PATCH] complete 2776.py --- zeta_python/completed/2776.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 zeta_python/completed/2776.py diff --git a/zeta_python/completed/2776.py b/zeta_python/completed/2776.py new file mode 100644 index 0000000..d1d8ca0 --- /dev/null +++ b/zeta_python/completed/2776.py @@ -0,0 +1,12 @@ +if __name__ == '__main__': + T = int(input()) + for _ in range(T): + N1 = int(input()) + I1 = set(map(int, input().split())) + N2 = int(input()) + I2 = list(map(int, input().split())) + for i in I2: + if i in I1: + print(1) + else: + print(0)