213432026-01-12 19:04:46algoproBájital (80 pont)pypy3Wrong answer 4/8078ms31580 KiB
# UUID: 43f8892c-564b-489c-a824-46a864c09240
n,x = [int(x) for x in input().split()]
A = [int(x) for x in input().split()]
Am=0
gg=0
o=sum(A)
for i in range(n):
    Am+=A[i]%x
    gg+=A[i]//x
#print(min(min(Am,gg),o//(x+1)))
print(min(Am,o//(x+1)))
SubtaskSumTestVerdictTimeMemory
base4/80
1Wrong answer0/039ms19440 KiB
2Wrong answer0/039ms19884 KiB
3Wrong answer0/243ms19404 KiB
4Wrong answer0/243ms19636 KiB
5Wrong answer0/245ms19748 KiB
6Wrong answer0/248ms21168 KiB
7Wrong answer0/454ms21664 KiB
8Wrong answer0/448ms21452 KiB
9Wrong answer0/276ms31304 KiB
10Wrong answer0/275ms31212 KiB
11Wrong answer0/267ms31148 KiB
12Wrong answer0/264ms31280 KiB
13Wrong answer0/267ms31212 KiB
14Wrong answer0/275ms31208 KiB
15Wrong answer0/265ms31208 KiB
16Wrong answer0/275ms31212 KiB
17Wrong answer0/268ms31216 KiB
18Wrong answer0/275ms31092 KiB
19Wrong answer0/265ms31268 KiB
20Wrong answer0/275ms31152 KiB
21Wrong answer0/268ms31140 KiB
22Wrong answer0/265ms31160 KiB
23Wrong answer0/443ms19504 KiB
24Accepted4/441ms19440 KiB
25Wrong answer0/439ms19400 KiB
26Wrong answer0/475ms31580 KiB
27Wrong answer0/467ms31208 KiB
28Wrong answer0/467ms31212 KiB
29Wrong answer0/475ms31208 KiB
30Wrong answer0/278ms31216 KiB
31Wrong answer0/268ms31216 KiB
32Wrong answer0/264ms31300 KiB
33Wrong answer0/275ms31224 KiB