結果

問題 No.549 素材合成システム
ユーザー URechaRechaURechaRecha
提出日時 2019-09-06 10:45:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 19,712 KB
最終ジャッジ日時 2023-09-05 20:56:38
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,792 KB
testcase_01 AC 15 ms
7,780 KB
testcase_02 AC 15 ms
7,736 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 AC 15 ms
7,792 KB
testcase_05 AC 15 ms
7,824 KB
testcase_06 AC 16 ms
7,736 KB
testcase_07 AC 77 ms
19,548 KB
testcase_08 AC 76 ms
19,620 KB
testcase_09 AC 77 ms
19,616 KB
testcase_10 AC 76 ms
19,604 KB
testcase_11 AC 77 ms
19,656 KB
testcase_12 AC 76 ms
19,620 KB
testcase_13 AC 76 ms
19,712 KB
testcase_14 AC 76 ms
19,652 KB
testcase_15 AC 76 ms
19,548 KB
testcase_16 AC 78 ms
19,604 KB
testcase_17 AC 40 ms
9,920 KB
testcase_18 AC 36 ms
9,356 KB
testcase_19 AC 40 ms
9,708 KB
testcase_20 AC 39 ms
9,680 KB
testcase_21 AC 52 ms
18,368 KB
testcase_22 AC 50 ms
17,292 KB
testcase_23 AC 55 ms
19,624 KB
testcase_24 AC 72 ms
18,484 KB
testcase_25 AC 66 ms
17,256 KB
testcase_26 AC 77 ms
19,180 KB
testcase_27 AC 68 ms
17,548 KB
testcase_28 AC 16 ms
7,788 KB
testcase_29 AC 16 ms
7,740 KB
testcase_30 AC 15 ms
7,740 KB
testcase_31 AC 42 ms
9,884 KB
testcase_32 AC 42 ms
9,960 KB
testcase_33 AC 42 ms
9,884 KB
testcase_34 AC 41 ms
9,956 KB
testcase_35 AC 56 ms
19,612 KB
testcase_36 AC 44 ms
9,836 KB
testcase_37 AC 44 ms
9,832 KB
testcase_38 AC 15 ms
7,788 KB
testcase_39 AC 15 ms
7,736 KB
testcase_40 AC 51 ms
14,820 KB
testcase_41 AC 31 ms
10,976 KB
testcase_42 AC 17 ms
8,216 KB
testcase_43 AC 25 ms
8,780 KB
testcase_44 AC 18 ms
8,216 KB
testcase_45 AC 26 ms
8,760 KB
testcase_46 AC 22 ms
8,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    ary= list(map(int,input().split()))
    res = ary.pop(ary.index(max(ary)))
    ary.sort()
    if N>=2:
        for i in range(N-1):
            res += ary.pop()//2
    print(res)
main()
0