Submission #10372894


Source Code Expand

Copy
N,K=map(int,input().split())
A=list(map(int,input().split()))
ans=0
if N<K:
  pass
else:
  for i in range(N-K):
    ans+=min(A)
    A.remove(min(A))  
print(ans)

Submission Info

Submission Time
Task C - Fennec vs Monster
User nerur
Language Python (3.4.3)
Score 0
Code Size 170 Byte
Status
Exec Time 2104 ms
Memory 25768 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
× 3
× 11
× 10
Set Name Test Cases
Sample sample_01, sample_02, sample_03
All max_01, max_02, max_03, random_01, random_02, random_03, random_04, random_05, random_06, random_07, random_08, random_09, random_10, random_11, random_12, random_13, random_14, random_15, sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
max_01 2104 ms 25148 KB
max_02 2104 ms 25156 KB
max_03 2104 ms 25768 KB
random_01 2104 ms 9736 KB
random_02 2104 ms 14888 KB
random_03 1209 ms 4700 KB
random_04 2104 ms 23072 KB
random_05 2104 ms 8016 KB
random_06 2104 ms 8940 KB
random_07 2104 ms 13176 KB
random_08 2104 ms 23404 KB
random_09 48 ms 18020 KB
random_10 31 ms 9544 KB
random_11 34 ms 11032 KB
random_12 25 ms 6472 KB
random_13 75 ms 25152 KB
random_14 65 ms 25152 KB
random_15 65 ms 25152 KB
sample_01 17 ms 2940 KB
sample_02 17 ms 2940 KB
sample_03 17 ms 2940 KB