Python/백준62 백준 9316 - Hello Judge n = int(input()) for i in range(1, n+1): print("Hello World, Judge", str(i)+"!") 2022. 10. 2. 백준 - 10988 펠린드롬인지 확인하기 word = list(input()) if word == word[::-1]: print(1) else: print(0) 2022. 10. 1. 백준 1009 - 분산처리 t = int(input()) for i in range(t): a, b = map(int, input().split()) a = a % 10 if a == 0: print(10) elif a == 1 or a == 5 or a == 6: print(a) elif a == 4 or a == 9: b = b % 2 if b == 1: print(a) else: print((a * a) % 10) else: b = b % 4 if b == 0: print((a**4) % 10 % 10 % 10) else: print((a**b) % 10 % 10 % 10) 2022. 9. 30. 백준 - 2028 자가복제수 n = int(input()) for i in range(n): a = input() b = str(int(a)*int(a)) c = list(a) c = len(c) if str(a) == str(b[-c:]): print("YES") else: print('NO') 2022. 9. 29. 이전 1 ··· 3 4 5 6 7 8 9 ··· 16 다음