221712026-01-14 17:35:22algoproBájital (80 pont)pypy3Wrong answer 12/8078ms31476 KiB
# UUID: acefc9dd-6560-4f8b-bee9-417b08a86261
n,x=[int(i) for i in input().split()]
a=[int(i) for i in input().split()]
forr=0
alapsum=0
for i in range(n):
    if a[i]<x:
        forr+=a[i]
    else:
        alapsum+=a[i]//x
        forr+=a[i]%x
while alapsum>forr:
    alapsum-=alapsum
    forr+=x
print(alapsum)
SubtaskSumTestVerdictTimeMemory
base12/80
1Accepted0/043ms19448 KiB
2Wrong answer0/039ms19676 KiB
3Wrong answer0/243ms19464 KiB
4Wrong answer0/239ms19676 KiB
5Wrong answer0/243ms19596 KiB
6Wrong answer0/243ms21132 KiB
7Wrong answer0/454ms21556 KiB
8Wrong answer0/446ms21552 KiB
9Wrong answer0/275ms31204 KiB
10Wrong answer0/264ms31196 KiB
11Wrong answer0/265ms31212 KiB
12Wrong answer0/275ms31068 KiB
13Wrong answer0/267ms31212 KiB
14Wrong answer0/264ms31088 KiB
15Wrong answer0/275ms31208 KiB
16Wrong answer0/275ms31212 KiB
17Wrong answer0/265ms31092 KiB
18Wrong answer0/265ms31212 KiB
19Wrong answer0/264ms31212 KiB
20Wrong answer0/272ms31212 KiB
21Wrong answer0/272ms31264 KiB
22Wrong answer0/274ms31212 KiB
23Wrong answer0/437ms19304 KiB
24Accepted4/443ms19400 KiB
25Wrong answer0/437ms19416 KiB
26Accepted4/471ms31476 KiB
27Wrong answer0/467ms31116 KiB
28Wrong answer0/465ms31084 KiB
29Wrong answer0/467ms31256 KiB
30Accepted2/278ms31224 KiB
31Accepted2/267ms31228 KiB
32Wrong answer0/264ms31092 KiB
33Wrong answer0/275ms31224 KiB