結果
| 問題 |
No.2334 Distinct Cards
|
| コンテスト | |
| ユーザー |
koarakko5555
|
| 提出日時 | 2023-06-02 22:25:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 82,504 KB |
| 実行使用メモリ | 99,072 KB |
| 最終ジャッジ日時 | 2024-12-28 19:29:59 |
| 合計ジャッジ時間 | 2,539 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 13 |
ソースコード
import collections
N, K = map(int, input().split())
A = list(map(int, input().split()))
Ac = collections.Counter(A)
ans = 0
num = 0
for v, c in Ac.items():
num += c
ans += 1
if K <= num:
print(ans)
exit()
koarakko5555