오늘도 김태원 - 파이썬 알고리즘 문제를 풀었다. 1. 주사위게임 def reverse(x) : res = 0 while x !=0 : t = x % 10 # x의 끝자리를 t에 넣는다 res = res * 10 +t # 기존의 res를 한칸 앞으로, t를 뒤에 넣는다. x = x // 10 # x의 끝자리를 없앤다 return res def isPrime(x) : if x == 1 : return False for i in range(2,x//2+1 ): if x%i ==0 : return False else : return True if __name__=="__main__" : n = int(input()) arr = list(map(int,input().split())) for tmp in arr ..