전체 글186 백준 - 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. 백준 - 1357 뒤집힌 덧셈 a, b = input().split() a = list(a) b = list(b) if len(a) < 2: a.append('0') a.append('0') a.append('0') elif 2 2022. 9. 28. 백준 - 5585 거스름돈 money = int(input()) count = 0 charge = [500, 100, 50, 10, 5, 1] a = 1000-money for i in charge: if a > 0: count += a // i a = a % i print(count) 2022. 9. 27. 백준 - 1712 손익분기점 a, b, c = map(int, input().split()) if b >= c: print(-1) else: print(a//(c-b)+1) 2022. 9. 26. 이전 1 ··· 7 8 9 10 11 12 13 ··· 47 다음