1d array clear

This commit is contained in:
2020-04-20 20:43:48 +09:00
parent c3d8d721b3
commit 7c20c34a76
8 changed files with 41 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
A = [int(input()) for i in range(9)]
I = 0
M = 0
for i, v in enumerate(A):
if v > M:
I = i
M = v
print(M)
print(I+1)