結果
| 問題 | No.3281 Pacific White-sided Dolphin vs Monster |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2025-09-26 22:55:02 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 80 ms / 2,000 ms |
| + 445µs | |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 64,496 KB |
| 実行使用メモリ | 74,940 KB |
| 最終ジャッジ日時 | 2026-10-21 10:38:26 |
| 合計ジャッジ時間 | 5,210 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 47 |
ソースコード
n = int(input())
H = list(map(int, input().split()))
H.sort()
ans = 0
if n > 63:
ans += n - 63
H = H[:63]
n = 63
now = 0
while 1:
M = H[:]
for i in range(now-1, -1, -1):
M.sort(reverse = True)
t = 1 << i
M[0] -= t
if M[0] <= 0:
M = M[1:]
if not M:
print(now + ans)
exit()
M.sort(reverse = True)
now += 1
kidodesu