結果
問題 | No.2777 Wild Flush |
ユーザー |
|
提出日時 | 2024-06-07 23:06:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 24,652 KB |
最終ジャッジ日時 | 2024-12-26 09:57:09 |
合計ジャッジ時間 | 4,187 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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) if A.count(statistics.mode(A)) >= K: print("Yes") elif A.count(statistics.mode(A)) + t >= K: print("Yes") else:print("No")