221062026-01-14 17:06:00algoproBájital (80 pont)pypy3Wrong answer 6/8086ms34212 KiB
# UUID: 33985174-3636-4b7e-bc05-b0bb4a512e17
n,x=[int(x) for x in input().split()]
a=[int(x) for x in input().split()]
forrsum=0
alap=[]
forr=[]
alapsum=0
for i in range(n):
    if a[i]<x:
        forr.append(a[i])
    else:
        alap.append(a[i])
for i in range(len(alap)):
    alapsum+=alap[i]//x
if alapsum>sum(forr):
    print(sum(forr))
else:
    print(alapsum)
SubtaskSumTestVerdictTimeMemory
base6/80
1Accepted0/043ms19436 KiB
2Wrong answer0/039ms19692 KiB
3Wrong answer0/239ms19628 KiB
4Wrong answer0/239ms19592 KiB
5Wrong answer0/245ms19808 KiB
6Wrong answer0/248ms21040 KiB
7Wrong answer0/450ms21536 KiB
8Wrong answer0/450ms21540 KiB
9Wrong answer0/283ms34212 KiB
10Wrong answer0/271ms34008 KiB
11Wrong answer0/272ms33980 KiB
12Wrong answer0/271ms34184 KiB
13Wrong answer0/272ms34188 KiB
14Wrong answer0/283ms34016 KiB
15Wrong answer0/272ms34096 KiB
16Wrong answer0/286ms34080 KiB
17Wrong answer0/282ms33984 KiB
18Wrong answer0/272ms34176 KiB
19Wrong answer0/271ms34164 KiB
20Wrong answer0/283ms34200 KiB
21Wrong answer0/285ms34212 KiB
22Wrong answer0/271ms34208 KiB
23Wrong answer0/443ms19400 KiB
24Wrong answer0/437ms19476 KiB
25Wrong answer0/446ms19432 KiB
26Accepted4/468ms33300 KiB
27Wrong answer0/483ms33996 KiB
28Wrong answer0/474ms34196 KiB
29Wrong answer0/472ms34020 KiB
30Wrong answer0/285ms33996 KiB
31Accepted2/274ms34212 KiB
32Wrong answer0/283ms34208 KiB
33Wrong answer0/272ms34200 KiB