python求助
查看原帖
python求助
382988
zhuyichen1楼主2021/5/17 14:28
n = int(input())
a = []
max1 = 0
c = 0
for i in range(0,n):
    a.append(int(input()))
for j in range(0,n):
    if a[j] > max1:
        max1 = a[j]
        c = j
else:
    print(c)
    print(max1)
2021/5/17 14:28
加载中...