https://www.acmicpc.net/problem/2566
Python Code
max_num = 0
for i in range(9):
row = list(map(int, input().split())) #굳이 행렬을 저장할 필요는 없다
if max(row) > max_num:
max_num = max(row) #최댓값
x = i + 1 #행
y = row.index(max_num) + 1 #열
print(max_num)
print(x,y)
'Programming [Python] > 백준 알고리즘 솔루션' 카테고리의 다른 글
#263 백준 파이썬 [2583] 영역 구하기 - BFS (0) | 2019.12.08 |
---|---|
#262 백준 파이썬 [1158] 조세퍼스 문제 (2) | 2019.12.08 |
#260 백준 파이썬 [15663] N과 M (9) - 순열 (0) | 2019.12.04 |
#259 백준 파이썬 [15665] N과 M (11) - 중복 순열 (0) | 2019.12.04 |
#258 백준 파이썬 [15666] N과 M (12) - 중복 조합 (0) | 2019.12.04 |