221322026-01-14 17:19:22algoproBájital (80 pont)pypy3Wrong answer 12/8078ms31552 KiB
# UUID: 829ae0eb-ebf4-4a66-991e-09635d24de27
n,x=[int(i) for i in input().split()]
a=[int(i) for i in input().split()]
forrsum=0
#alap=[]
forr=0
alapsum=0
for i in range(n):
    if a[i]<x:
        forr+=a[i]
    else:
        #alap.append(a[i])
        alapsum+=a[i]//x
        forr+=a[i]%x
#for i in range(len(alap)):
#    alapsum+=alap[i]//x
#    print(alapsum)

if alapsum > forr:
    print(forr)
else:
    print(alapsum)
SubtaskSumTestVerdictTimeMemory
base12/80
1Accepted0/039ms19456 KiB
2Wrong answer0/045ms19572 KiB
3Wrong answer0/245ms19540 KiB
4Wrong answer0/245ms19688 KiB
5Wrong answer0/246ms19692 KiB
6Wrong answer0/248ms21288 KiB
7Wrong answer0/450ms21404 KiB
8Wrong answer0/457ms21448 KiB
9Wrong answer0/276ms31188 KiB
10Wrong answer0/278ms31220 KiB
11Wrong answer0/275ms31096 KiB
12Wrong answer0/267ms31168 KiB
13Wrong answer0/278ms31212 KiB
14Wrong answer0/275ms31204 KiB
15Wrong answer0/265ms31292 KiB
16Wrong answer0/274ms31212 KiB
17Wrong answer0/275ms31208 KiB
18Wrong answer0/265ms31188 KiB
19Wrong answer0/265ms31300 KiB
20Wrong answer0/274ms31216 KiB
21Wrong answer0/267ms31204 KiB
22Wrong answer0/267ms31176 KiB
23Wrong answer0/443ms19332 KiB
24Accepted4/443ms19580 KiB
25Wrong answer0/439ms19500 KiB
26Accepted4/475ms31552 KiB
27Wrong answer0/475ms31172 KiB
28Wrong answer0/465ms31212 KiB
29Wrong answer0/465ms31212 KiB
30Accepted2/275ms31060 KiB
31Accepted2/276ms31120 KiB
32Wrong answer0/264ms31076 KiB
33Wrong answer0/265ms31120 KiB