結果
問題 | No.1692 Expectations |
ユーザー |
![]() |
提出日時 | 2021-10-01 21:27:19 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 65,024 KB |
最終ジャッジ日時 | 2024-07-19 10:32:18 |
合計ジャッジ時間 | 2,568 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 20 |
ソースコード
from collections import defaultdictn,m=map(int,input().split())memo=defaultdict(int)memoset=set()for i in range(n):memo[A[i]]+=1memoset.add(A[i])kind = len(list(memoset))ans_mn=0for key,val in memo.items():if val>m-n:ans_mn+=1print(kind,ans_mn)