結果

問題 No.549 素材合成システム
ユーザー nanaenanae
提出日時 2017-04-04 10:23:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 447 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 19,648 KB
最終ジャッジ日時 2023-09-22 17:11:25
合計ジャッジ時間 4,583 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,756 KB
testcase_01 AC 15 ms
7,780 KB
testcase_02 AC 16 ms
7,832 KB
testcase_03 AC 16 ms
7,856 KB
testcase_04 AC 15 ms
7,812 KB
testcase_05 AC 15 ms
7,948 KB
testcase_06 AC 15 ms
7,780 KB
testcase_07 AC 92 ms
19,468 KB
testcase_08 AC 88 ms
19,480 KB
testcase_09 AC 89 ms
19,312 KB
testcase_10 AC 89 ms
19,372 KB
testcase_11 AC 88 ms
19,372 KB
testcase_12 AC 90 ms
19,412 KB
testcase_13 AC 88 ms
19,356 KB
testcase_14 AC 89 ms
19,368 KB
testcase_15 AC 87 ms
19,512 KB
testcase_16 AC 89 ms
19,420 KB
testcase_17 AC 52 ms
10,008 KB
testcase_18 AC 45 ms
9,380 KB
testcase_19 AC 51 ms
9,736 KB
testcase_20 AC 50 ms
9,940 KB
testcase_21 AC 62 ms
18,340 KB
testcase_22 AC 60 ms
17,312 KB
testcase_23 AC 68 ms
19,648 KB
testcase_24 AC 83 ms
18,444 KB
testcase_25 AC 76 ms
17,364 KB
testcase_26 AC 87 ms
19,204 KB
testcase_27 AC 76 ms
17,388 KB
testcase_28 AC 15 ms
7,860 KB
testcase_29 AC 15 ms
7,780 KB
testcase_30 AC 15 ms
7,948 KB
testcase_31 AC 53 ms
10,024 KB
testcase_32 AC 54 ms
9,868 KB
testcase_33 AC 54 ms
9,896 KB
testcase_34 AC 53 ms
10,012 KB
testcase_35 AC 67 ms
19,584 KB
testcase_36 AC 55 ms
10,044 KB
testcase_37 AC 55 ms
10,008 KB
testcase_38 AC 15 ms
7,812 KB
testcase_39 AC 16 ms
7,908 KB
testcase_40 AC 58 ms
14,724 KB
testcase_41 AC 34 ms
11,252 KB
testcase_42 AC 17 ms
8,340 KB
testcase_43 AC 28 ms
8,792 KB
testcase_44 AC 19 ms
8,348 KB
testcase_45 AC 32 ms
8,800 KB
testcase_46 AC 26 ms
8,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N = int(input())
    x = [int(i) for i in input().split()]

    assert 2 <= N <= 10**5
    assert all(1 <= xi <= 10**4 for xi in x)

    # [x_i]を昇順にソート
    x.sort()

    # 経験値の小さいアンドロイドから順に一番大きい経験値のアンドロイドへ合成していく
    for i in range(N - 1):
        x[-1] += x[i] // 2

    ans = x[-1]

    print(ans)

if __name__ == '__main__':
    solve()
0