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) 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