반응형
Notice
Recent Posts
Recent Comments
Link
목록2차원배열 (2)
안경잡이 구루루
백준 10798 (세로읽기) [Python/파이썬]
https://www.acmicpc.net/problem/10798 10798번: 세로읽기 총 다섯줄의 입력이 주어진다. 각 줄에는 최소 1개, 최대 15개의 글자들이 빈칸 없이 연속으로 주어진다. 주어지는 글자는 영어 대문자 ‘A’부터 ‘Z’, 영어 소문자 ‘a’부터 ‘z’, 숫자 ‘0’ www.acmicpc.net 나: words =[input() for _ in range(5)] result='' for i in range(15): for j in range(5): if i
파이썬(Python)/문제풀이(백준,BaekJoon)
2023. 8. 31. 15:31
백준 2566 (최댓값) [Python/파이썬]
https://www.acmicpc.net/problem/2566 2566번: 최댓값 첫째 줄에 최댓값을 출력하고, 둘째 줄에 최댓값이 위치한 행 번호와 열 번호를 빈칸을 사이에 두고 차례로 출력한다. 최댓값이 두 개 이상인 경우 그 중 한 곳의 위치를 출력한다. www.acmicpc.net 나: max_hangs=[] max_yuls=[] for i in range(9): a = list(map(int,input().split())) hangmax = max(a) yulmax = a.index(hangmax) +1 max_hangs.append(hangmax) max_yuls.append(yulmax) print(max(max_hangs)) location = max_hangs.index(max(max..
파이썬(Python)/문제풀이(백준,BaekJoon)
2023. 8. 30. 13:09