⌨️

[AtCoder]ABC-095|B - Bitter Alchemy

2023/01/17に公開

設問ページ

提出結果

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


def getIntRow(N):
    return [int(input()) for _ in range(N)]


def main():
    n, x = getIntMap()
    m = getIntRow(n)

    m.sort()

    c = len(m)
    x -= sum(m)
    c += x // m[0]

    print(c)


if __name__ == "__main__":
    main()

Discussion