⌨️

[AtCoder]ABC-365|B - Second Best

2024/08/23に公開

設問ページ

提出結果

def getInt():
    return int(input())


def getIntList():
    return list(map(int, input().split()))


def main():
    N = getInt()
    A = getIntList()
    B = sorted(A)

    print(A.index(B[N - 2]) + 1)


if __name__ == "__main__":
    main()

Discussion