結果
問題 | No.1692 Expectations |
ユーザー | nephrologist |
提出日時 | 2021-10-01 21:50:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 310 bytes |
コンパイル時間 | 694 ms |
コンパイル使用メモリ | 86,716 KB |
実行使用メモリ | 173,864 KB |
最終ジャッジ日時 | 2023-09-26 17:01:25 |
合計ジャッジ時間 | 4,727 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 94 ms
71,736 KB |
testcase_01 | AC | 94 ms
71,592 KB |
testcase_02 | AC | 92 ms
71,620 KB |
testcase_03 | AC | 91 ms
71,560 KB |
testcase_04 | AC | 92 ms
71,516 KB |
testcase_05 | AC | 93 ms
71,384 KB |
testcase_06 | AC | 92 ms
71,280 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 91 ms
71,580 KB |
testcase_10 | WA | - |
testcase_11 | AC | 137 ms
104,388 KB |
testcase_12 | AC | 92 ms
71,580 KB |
testcase_13 | AC | 92 ms
71,548 KB |
testcase_14 | AC | 110 ms
80,656 KB |
testcase_15 | AC | 191 ms
138,388 KB |
testcase_16 | AC | 112 ms
81,072 KB |
testcase_17 | AC | 146 ms
110,844 KB |
testcase_18 | AC | 118 ms
87,680 KB |
testcase_19 | AC | 206 ms
146,856 KB |
testcase_20 | AC | 185 ms
158,784 KB |
testcase_21 | AC | 203 ms
173,864 KB |
ソースコード
from collections import defaultdict n,m=map(int,input().split()) A=list(map(int,input().split())) memo=defaultdict(int) memoset=set() for i in range(n): memo[A[i]]+=1 memoset.add(A[i]) kind = len(list(memoset)) ans_mn=0 for key,val in memo.items(): if val>m-n: ans_mn+=1 print(kind,0)