728x90 반응형 SMALL 백준문제105 백준) 11948번 - python grade = [int(input()) for i in range(6)] nature = grade[0:4] nature.sort(reverse=True) history = grade[4:6] history.sort(reverse=True) print(sum(nature[0:3]) + history[0]) 2024. 4. 15. 백준) 11945번 - python n,m = map(int,input().split()) lst = [] for i in range(n): a = list(map(int,input())) a.reverse() lst.append(a) for row in lst: for element in row: print(element, end="") print() 2024. 4. 14. 백준) 11720번 - python def convert_to_list(input_string): return [int(char) for char in input_string] n,user_input,a = int(input()), input(), 0 user_result = convert_to_list(user_input) for i in range(n): a += user_result[i] print(a) 2024. 4. 13. 백준) 11365번 - python while True: a= input() if a == "END" : break else : print(a[::-1]) 2024. 4. 12. 이전 1 ··· 4 5 6 7 8 9 10 ··· 27 다음 728x90 반응형 LIST