728x90 반응형 SMALL 전체 글375 백준) 30007번 - python n = int(input()) A,B,X = 0,0,0 for i in range(n): A,B,X = map(int, input().split()) print(A * (X - 1) + B) 2024. 3. 8. 백준) 29863번 - python sleep = int(input()) wake = int(input()) if sleep > wake: print(24 - sleep + wake) else: print(wake - sleep) 2024. 3. 7. 백준) 29699번 - python n = int(input()) sentence = "WelcomeToSMUPC" * n print(sentence[n-1]) 2024. 3. 6. 백준) 28938번 - python n0= int(input()) n1 = map(int,input().split()) count = 0 for i in n1: count += i if count > 0:print("Right") elif count ==0: print("Stay") else: print("Left") 2024. 3. 5. 이전 1 ··· 81 82 83 84 85 86 87 ··· 94 다음 728x90 반응형 LIST