#31121: python AC


forkidlai (forkidlai)


最後一筆測資string太大,用input().split()會memory error

改用string手工處理切分

n,h,g = map(int,input().split())
s = input()
clist = []
tmp = ''
for c in s:
    if c == ' ':
        clist.append(int(tmp)//h)
        tmp = ''
    else:
        tmp += c
if tmp:
    clist.append(int(tmp)//h)

# clist = [int(x)//h for x in input().split()] #每塔罐數, 最後一筆測資用split會 memory error