⌨️

[AtCoder]ABC-300|A - N-choice question

2023/09/06に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


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


def main():
    n, a, b = getIntMap()
    c = [0] + getIntList()

    print(c.index(a + b))


if __name__ == "__main__":
    main()

Discussion