⌨️
[AtCoder]ABC-209|B - Can you buy them all?
設問ページ
提出結果
def getIntMap():
return map(int, input().split())
def getIntList():
return list(map(int, input().split()))
def main():
n, x = getIntMap()
a = getIntList()
print('Yes' if x >= sum(a) - len(a) // 2 else 'No')
if __name__ == "__main__":
main()
Discussion