From 3bfd52acf7f2202319567ad6a506f700caa3f2f3 Mon Sep 17 00:00:00 2001 From: SeokHo-Ham Date: Fri, 3 Mar 2023 23:35:37 +0900 Subject: [PATCH] =?UTF-8?q?230303=20=EB=8F=99=EC=A0=84=EB=B6=84=EB=B0=B0?= =?UTF-8?q?=20=ED=92=80=EC=9D=B4=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...231\354\240\204\353\266\204\353\260\260.py" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "forkyy/python/mar/\353\217\231\354\240\204\353\266\204\353\260\260.py" diff --git "a/forkyy/python/mar/\353\217\231\354\240\204\353\266\204\353\260\260.py" "b/forkyy/python/mar/\353\217\231\354\240\204\353\266\204\353\260\260.py" new file mode 100644 index 0000000..b3cbe5d --- /dev/null +++ "b/forkyy/python/mar/\353\217\231\354\240\204\353\266\204\353\260\260.py" @@ -0,0 +1,18 @@ +import sys + +input = sys.stdin.readline + +for _ in range(3): + n = int(input()) + total_amount = 0 + coins = dict() + for _ in range(n): + t, c = map(int, input().split()) + coins[t] = c + total_amount += t * c + + if total_amount % 2 == 1: + print(0) + continue + + \ No newline at end of file