728x90 반응형 SMALL 백준문제/브론즈 538 백준) 6840번 - python result = [] for i in range(3): bear = int(input()) result.append(bear) result.sort() print(result[1]) 2024. 2. 23. 백준) 5622번 - python S = input().upper() time = 0 for i in S: if i in "ABC": time +=3 elif i in "DEF": time +=4 elif i in "GHI": time +=5 elif i in "JKL": time +=6 elif i in "MNO": time +=7 elif i in "PQRS": time +=8 elif i in "TUV": time +=9 elif i in "WXYZ": time +=10 elif i in "": time +=2 else: time +=11 print(time) 2024. 2. 22. 백준) 5522번 - python result = 0 for i in range(5): b = int(input()) result += b print(result) 2024. 2. 21. 백준) 5341번 - python result =[] while True: mid_result,a = 0, int(input()) if a==0: for i in range(len(result)): print(result[i],end='\n') break else: for i in range(1,a+1): mid_result += i result.append(mid_result) 2024. 2. 20. 이전 1 ··· 3 4 5 6 7 8 9 10 다음 728x90 반응형 LIST