문제 : https://www.acmicpc.net/problem/2566
코드
import sys
input = sys.stdin.readline
ans = -1
for i in range(9):
row = list(map(int, input().split()))
max_num = max(row)
if ans < max_num:
ans = max_num
x = i + 1
y = row.index(max_num) + 1
print(ans)
print(x, y)
'코딩테스트 > 백준 (python)' 카테고리의 다른 글
백준 / 25206번 / 너의 평점은 / python 파이썬 (1) | 2024.06.07 |
---|---|
백준 / 14425번 / 문자열 집합 / python 파이썬 (0) | 2024.06.05 |
백준 / 1157번 / 단어 공부 / python 파이썬 (0) | 2024.05.29 |
백준 / 15552번 / 빠른 A+B / python 파이썬 (0) | 2024.05.28 |
백준 / 1181번 / 단어 정렬 / python 파이썬 (0) | 2024.05.27 |