結果
| 問題 |
No.2777 Wild Flush
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 22:57:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 130,944 KB |
| 最終ジャッジ日時 | 2024-12-26 09:34:52 |
| 合計ジャッジ時間 | 7,948 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 24 |
ソースコード
import statistics
import math
N,K= map(int, input().split())
A = list(map(int, input().split()))
if A.count(statistics.mode(A)) >= K:
print("Yes")
elif A.count(statistics.mode(A)) + 1 == K:
if 0 in A :
print("Yes")
else:
print("No")
else:
print("No")