結果

問題 No.549 素材合成システム
ユーザー ああいい
提出日時 2022-01-28 12:18:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 82,220 KB
実行使用メモリ 82,764 KB
最終ジャッジ日時 2024-12-28 09:35:25
合計ジャッジ時間 4,845 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = list(map(int,input().split()))

x.sort(reverse = True)
for _ in range(N-1):
    a = x.pop()
    x[0] += a // 2
print(x[0])
0