From d017bc3801b869c96e9afe95ad4a3bf42df8d2e6 Mon Sep 17 00:00:00 2001 From: CE-sw <91242806+Tjdnjs@users.noreply.github.com> Date: Mon, 4 Jul 2022 14:34:02 +0900 Subject: [PATCH 1/3] 21.12.29 23:32 --- "0704/bronze-21\353\260\225\354\204\234\354\233\220.py" | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 "0704/bronze-21\353\260\225\354\204\234\354\233\220.py" diff --git "a/0704/bronze-21\353\260\225\354\204\234\354\233\220.py" "b/0704/bronze-21\353\260\225\354\204\234\354\233\220.py" new file mode 100644 index 0000000..6255e5a --- /dev/null +++ "b/0704/bronze-21\353\260\225\354\204\234\354\233\220.py" @@ -0,0 +1,6 @@ +for i in range(int(input())): + x,y = map(int, input().split()) + x = x%10; y = y%4+4 + result = x**y%10 + if result == 0: print(10) + else: print(result) From 590c2f196f242b7ff1492ccdea83b2e5076d35e2 Mon Sep 17 00:00:00 2001 From: CE-sw <91242806+Tjdnjs@users.noreply.github.com> Date: Mon, 4 Jul 2022 14:52:41 +0900 Subject: [PATCH 2/3] 07.04 14:50 --- "0704/silver-21\353\260\225\354\204\234\354\233\220.py" | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 "0704/silver-21\353\260\225\354\204\234\354\233\220.py" diff --git "a/0704/silver-21\353\260\225\354\204\234\354\233\220.py" "b/0704/silver-21\353\260\225\354\204\234\354\233\220.py" new file mode 100644 index 0000000..0fc4695 --- /dev/null +++ "b/0704/silver-21\353\260\225\354\204\234\354\233\220.py" @@ -0,0 +1,7 @@ +n = input().split('-') +n[0] = sum(map(int,n[0].split('+'))) + +for i in range(1,len(n)): + n[i] = -sum(map(int,n[i].split('+'))) + +print(sum(n)) From c987f3db4de5dcb603499d9a5dc7afc2130ffe8f Mon Sep 17 00:00:00 2001 From: CE-sw <91242806+Tjdnjs@users.noreply.github.com> Date: Sun, 10 Jul 2022 15:48:45 +0900 Subject: [PATCH 3/3] 07.10. 15:45 --- ...21\353\260\225\354\204\234\354\233\220.py" | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 "0704/gold-21\353\260\225\354\204\234\354\233\220.py" diff --git "a/0704/gold-21\353\260\225\354\204\234\354\233\220.py" "b/0704/gold-21\353\260\225\354\204\234\354\233\220.py" new file mode 100644 index 0000000..dcbfc82 --- /dev/null +++ "b/0704/gold-21\353\260\225\354\204\234\354\233\220.py" @@ -0,0 +1,46 @@ +class dice: + def __init__(self, n,m,y,x,k, map_): + self.mapsize = [n,m]; self.loc = [y,x]; self.cmd_ = k + self.mapnum = map_; + self.dx = [0,1,-1, 0, 0]; self.dy = [0,0,0,-1,1]; self.tmp = [0]*7 + def check(self, i): + y,x = self.loc[0], self.loc[1]; + if 0<=self.dx[i]+x and self.dx[i]+x