結果
問題 | No.2777 Wild Flush |
ユーザー |
|
提出日時 | 2024-06-07 23:05:50 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 444 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 120,192 KB |
最終ジャッジ日時 | 2024-12-26 09:55:34 |
合計ジャッジ時間 | 8,521 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 RE * 1 |
other | AC * 12 WA * 1 RE * 11 |
ソースコード
import statistics N,K= map(int, input().split()) A = list(map(int, input().split())) t = A.count(0) A.remove(0) #print(t) if A.count(statistics.mode(A)) >= K: print("Yes") elif A.count(statistics.mode(A)) + t >= K: print("Yes") else:print("No") #print(A.count(statistics.mode(A)))