Submission #1986046
Source Code Expand
import numpy as np N, K = map(int, input().split()) a = list(map(int, input().split())) a = np.array(a) def solve(): u, c = np.unique(a, return_counts=True) k = len(u) - K if len(u) > K: print(np.sum(np.sort(c)[:k])) else: print(0) solve()
Submission Info
Submission Time | |
---|---|
Task | C - Not so Diverse |
User | Y6I |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 286 Byte |
Status | RE |
Exec Time | 211 ms |
Memory | 34124 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | RE | 148 ms | 12224 KB |
10.txt | RE | 210 ms | 33752 KB |
11.txt | RE | 209 ms | 34084 KB |
12.txt | RE | 211 ms | 34116 KB |
13.txt | RE | 205 ms | 31956 KB |
2.txt | RE | 147 ms | 12224 KB |
3.txt | RE | 209 ms | 33964 KB |
4.txt | RE | 209 ms | 33764 KB |
5.txt | RE | 208 ms | 33232 KB |
6.txt | RE | 204 ms | 31544 KB |
7.txt | RE | 202 ms | 30492 KB |
8.txt | RE | 208 ms | 34124 KB |
9.txt | RE | 209 ms | 33556 KB |
sample1.txt | RE | 149 ms | 12384 KB |
sample2.txt | RE | 148 ms | 12228 KB |
sample3.txt | RE | 149 ms | 12500 KB |