Skip to content

Commit a01d211

Browse files
committed
[BOJ] 2566 최댓값 (B3)
1 parent 05ebf7a commit a01d211

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

심수연/10주차/260304.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# https://www.acmicpc.net/problem/2566
2+
3+
import sys
4+
input = sys.stdin.readline
5+
6+
graph = [list(map(int, input().split())) for _ in range(9)]
7+
8+
max_value = 0
9+
row = 0
10+
col = 0
11+
12+
for i in range(9):
13+
for j in range(9):
14+
if graph[i][j] >= max_value:
15+
max_value = graph[i][j]
16+
col = j + 1
17+
row = i + 1
18+
19+
print(max_value)
20+
print(row, col)
21+

0 commit comments

Comments
 (0)