結果
問題 | No.2334 Distinct Cards |
ユーザー |
![]() |
提出日時 | 2023-06-02 21:22:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 129 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 391 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 107,392 KB |
最終ジャッジ日時 | 2024-12-28 16:09:27 |
合計ジャッジ時間 | 3,350 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#yukicoder391A'''やばい回に紛れ込んでしまった 助かるかな'''f=lambda:list(map(int,input().split()))from collections import defaultdict as ddN,K=f(); A=f(); D=dd(int)for i in A: D[i]+=1num=[]for i in D: num.append(D[i])num.sort(reverse=True)ans=0; cnt=0for i in num:ans+=1; cnt+=iif cnt>=K: print(ans); break