-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2566.py
More file actions
executable file
·52 lines (49 loc) · 1.36 KB
/
2566.py
File metadata and controls
executable file
·52 lines (49 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
l1 = input()
l2 = input()
l3 = input()
l4 = input()
l5 = input()
l6 = input()
l7 = input()
l8 = input()
l9 = input()
max = 0
max_location = ""
for _ in range(0, 9):
if int(l1.split(" ")[_]) > int(max):
max = l1.split(" ")[_]
max_location = "1 " + str(_ + 1)
for _ in range(0, 9):
if int(l2.split(" ")[_]) > int(max):
max = l2.split(" ")[_]
max_location = "2 " + str(_ + 1)
for _ in range(0, 9):
if int(l3.split(" ")[_]) > int(max):
max = l3.split(" ")[_]
max_location = "3 " + str(_ + 1)
for _ in range(0, 9):
if int(l4.split(" ")[_]) > int(max):
max = l4.split(" ")[_]
max_location = "4 " + str(_ + 1)
for _ in range(0, 9):
if int(l5.split(" ")[_]) > int(max):
max = l5.split(" ")[_]
max_location = "5 " + str(_ + 1)
for _ in range(0, 9):
if int(l6.split(" ")[_]) > int(max):
max = l6.split(" ")[_]
max_location = "6 " + str(_ + 1)
for _ in range(0, 9):
if int(l7.split(" ")[_]) > int(max):
max = l7.split(" ")[_]
max_location = "7 " + str(_ + 1)
for _ in range(0, 9):
if int(l8.split(" ")[_]) > int(max):
max = l8.split(" ")[_]
max_location = "8 " + str(_ + 1)
for _ in range(0, 9):
if int(l9.split(" ")[_]) > int(max):
max = l9.split(" ")[_]
max_location = "9 " + str(_ + 1)
print(max)
print(max_location)