結果
問題 | No.2777 Wild Flush |
ユーザー |
|
提出日時 | 2024-06-07 23:09:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 753 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 29,652 KB |
最終ジャッジ日時 | 2024-12-26 10:04:16 |
合計ジャッジ時間 | 4,763 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 22 WA * 1 RE * 1 |
ソースコード
import statistics N,K= map(int, input().split()) A = list(map(int, input().split())) t = A.count(0) try: A.remove(0) except: s = 0 if A.count(statistics.mode(A)) >= K: print("Yes") elif A.count(statistics.mode(A)) + t >= K: print("Yes") else:print("No")