⌨️

[AtCoder]ABC-277|A - ^{-1}

2023/08/03に公開

設問ページ

提出結果

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


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


def main():
    n, x = getIntMap()
    p = [0] + getIntList()

    print(p.index(x))


if __name__ == "__main__":
    main()

Discussion