結果
問題 |
No.3281 Pacific White-sided Dolphin vs Monster
|
ユーザー |
![]() |
提出日時 | 2025-09-27 11:43:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 82,836 KB |
実行使用メモリ | 92,876 KB |
最終ジャッジ日時 | 2025-09-27 11:43:55 |
合計ジャッジ時間 | 5,208 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
N=int(input());H=sorted(map(int,input().split()))[:60];o,n=120,0 while o-n>1: p=1<<(m:=(o+n)>>1);Q=H[:] while p:=p>>1:Q[-1]-=p;Q.sort() if Q[-1]>0:n=m else:o=m print(o+(N-len(H)))