結果
問題 |
No.2777 Wild Flush
|
ユーザー |
|
提出日時 | 2024-06-07 23:19:46 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 325 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 64,896 KB |
最終ジャッジ日時 | 2024-12-26 10:25:33 |
合計ジャッジ時間 | 4,248 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 5 |
other | RE * 24 |
ソースコード
n=int(input()) L=list(map(int,input().split())) from collections import defaultdict d=defaultdict(int) for e in L: d[e]+=1 Max=0 for k,v in d.items(): if k!=0: Max=max(Max,v) if k<=Max+d[0]: print("Yes") else: print("No")