728x90 반응형 SMALL 전체 글162 백준) 5300번 - python lst,n= [], int(input()) for i in range(1,n+1): lst.append(i) if i % 6 == 0 or i == n: lst.append("Go!") [print(lst[i], end = " ") for i in range(len(lst))] 2024. 3. 27. 백준) 4714번 while True: a = float(input()) if a < 0: break else: print("Objects weighing {:.2f} on Earth will weigh {:.2f} on the moon.".format(a,a*0.167)) 2024. 3. 26. 백준) 4695번 - python while True: result = 1 a = float(input()) if a == 0: break else: for i in range(1,5): result += a ** i print("{:.2f}".format(result)) 2024. 3. 25. 백준) 4589번 - python result = [] for i in range(int(input())): a,b,c = map(int, input().split()) result.append([a,b,c]) print("Gnomes:") for i in range(len(result)): print("Ordered" if result[i][0] >= result[i][1] >= result[i][2] or result[i][0] 2024. 3. 24. 이전 1 ··· 23 24 25 26 27 28 29 ··· 41 다음 728x90 반응형 LIST