187422025-11-03 15:11:12birozsBájital (80 pont)python3Wrong answer 0/8082ms15420 KiB
N,x = map(int,input().split())
T = list(map(int,input().split()))
egesz = 0
maradek = 0
for k in T:
    egesz += k // x
    maradek += k % x
print(egesz,maradek)
if maradek >= egesz:
    print(egesz)
else:
    tovabbi = ((egesz - maradek) * x) // (x + 1)
    print(tovabbi + maradek)
SubtaskSumTestVerdictTimeMemory
base0/80
1Wrong answer0/016ms3116 KiB
2Wrong answer0/016ms3120 KiB
3Wrong answer0/216ms3124 KiB
4Wrong answer0/216ms3120 KiB
5Wrong answer0/217ms3124 KiB
6Wrong answer0/216ms3136 KiB
7Wrong answer0/417ms3372 KiB
8Wrong answer0/417ms3120 KiB
9Wrong answer0/278ms15288 KiB
10Wrong answer0/279ms15280 KiB
11Wrong answer0/275ms15352 KiB
12Wrong answer0/279ms15376 KiB
13Wrong answer0/275ms15288 KiB
14Wrong answer0/279ms15288 KiB
15Wrong answer0/275ms15232 KiB
16Wrong answer0/279ms15288 KiB
17Wrong answer0/276ms15284 KiB
18Wrong answer0/279ms15296 KiB
19Wrong answer0/275ms15228 KiB
20Wrong answer0/279ms15376 KiB
21Wrong answer0/279ms15216 KiB
22Wrong answer0/275ms15236 KiB
23Wrong answer0/414ms3116 KiB
24Wrong answer0/416ms3040 KiB
25Wrong answer0/416ms2872 KiB
26Wrong answer0/468ms10884 KiB
27Wrong answer0/475ms15288 KiB
28Wrong answer0/475ms15288 KiB
29Wrong answer0/482ms15312 KiB
30Wrong answer0/281ms15420 KiB
31Wrong answer0/275ms15284 KiB
32Wrong answer0/279ms15328 KiB
33Wrong answer0/275ms15220 KiB