11812 | 2024-11-11 19:28:39 | bajozsa | Pontos Átlag | python3 | Wrong answer 0/100 | 1.1s | 26344 KiB |
N, K = map(int, input().strip().split())
P = list(map(int, input().strip().split()))
P.sort(reverse=True)
atlagKulonbseg = N * K - sum(P)
modositva = False
for i in range(N + 1):
if atlagKulonbseg > 0:
print(i + 1 if not modositva else i)
break
elif atlagKulonbseg == 0:
print(i if not modositva else i + 1)
break
else:
P[i] = 1
atlagKulonbseg = N * K - sum(P)
modositva = True
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 3128 KiB | ||||
2 | Accepted | 16ms | 3132 KiB | ||||
subtask2 | 0/20 | ||||||
3 | Accepted | 17ms | 3128 KiB | ||||
4 | Accepted | 17ms | 3132 KiB | ||||
5 | Accepted | 16ms | 3120 KiB | ||||
6 | Accepted | 16ms | 3160 KiB | ||||
7 | Accepted | 16ms | 3128 KiB | ||||
8 | Accepted | 16ms | 3136 KiB | ||||
9 | Accepted | 17ms | 3128 KiB | ||||
10 | Accepted | 16ms | 3128 KiB | ||||
11 | Accepted | 17ms | 3304 KiB | ||||
12 | Accepted | 16ms | 3128 KiB | ||||
13 | Wrong answer | 16ms | 3128 KiB | ||||
subtask3 | 0/40 | ||||||
14 | Accepted | 16ms | 3084 KiB | ||||
15 | Accepted | 23ms | 3128 KiB | ||||
16 | Accepted | 17ms | 3020 KiB | ||||
17 | Accepted | 17ms | 3024 KiB | ||||
18 | Accepted | 23ms | 3100 KiB | ||||
19 | Accepted | 19ms | 3128 KiB | ||||
20 | Wrong answer | 24ms | 3128 KiB | ||||
21 | Accepted | 16ms | 3228 KiB | ||||
22 | Accepted | 16ms | 3128 KiB | ||||
23 | Accepted | 16ms | 3052 KiB | ||||
24 | Wrong answer | 17ms | 3128 KiB | ||||
25 | Accepted | 16ms | 3128 KiB | ||||
26 | Wrong answer | 16ms | 3132 KiB | ||||
subtask4 | 0/40 | ||||||
27 | Accepted | 151ms | 24896 KiB | ||||
28 | Time limit exceeded | 1.1s | 24864 KiB | ||||
29 | Time limit exceeded | 1.1s | 25052 KiB | ||||
30 | Time limit exceeded | 1.1s | 24844 KiB | ||||
31 | Time limit exceeded | 1.085s | 25044 KiB | ||||
32 | Time limit exceeded | 1.082s | 24900 KiB | ||||
33 | Time limit exceeded | 1.082s | 24872 KiB | ||||
34 | Time limit exceeded | 1.082s | 25040 KiB | ||||
35 | Time limit exceeded | 1.082s | 25048 KiB | ||||
36 | Time limit exceeded | 1.082s | 24924 KiB | ||||
37 | Accepted | 145ms | 25040 KiB | ||||
38 | Accepted | 70ms | 7088 KiB | ||||
39 | Accepted | 144ms | 23752 KiB | ||||
40 | Wrong answer | 141ms | 24988 KiB | ||||
41 | Accepted | 125ms | 16532 KiB | ||||
42 | Wrong answer | 137ms | 26344 KiB | ||||
43 | Wrong answer | 123ms | 23288 KiB |