結果

問題 No.549 素材合成システム
ユーザー URechaRechaURechaRecha
提出日時 2019-09-06 10:50:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 19,724 KB
最終ジャッジ日時 2023-09-05 21:04:16
合計ジャッジ時間 3,999 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,932 KB
testcase_01 AC 15 ms
7,756 KB
testcase_02 AC 15 ms
7,776 KB
testcase_03 AC 15 ms
7,760 KB
testcase_04 AC 15 ms
7,756 KB
testcase_05 AC 16 ms
7,900 KB
testcase_06 AC 15 ms
7,760 KB
testcase_07 AC 74 ms
19,688 KB
testcase_08 AC 74 ms
19,676 KB
testcase_09 AC 78 ms
19,680 KB
testcase_10 AC 74 ms
19,692 KB
testcase_11 AC 75 ms
19,592 KB
testcase_12 AC 75 ms
19,632 KB
testcase_13 AC 74 ms
19,564 KB
testcase_14 AC 73 ms
19,724 KB
testcase_15 AC 73 ms
19,508 KB
testcase_16 AC 75 ms
19,680 KB
testcase_17 AC 39 ms
9,844 KB
testcase_18 AC 34 ms
9,324 KB
testcase_19 AC 38 ms
9,640 KB
testcase_20 AC 37 ms
9,680 KB
testcase_21 AC 48 ms
18,340 KB
testcase_22 AC 46 ms
17,344 KB
testcase_23 AC 52 ms
19,624 KB
testcase_24 AC 69 ms
18,500 KB
testcase_25 AC 62 ms
17,208 KB
testcase_26 AC 72 ms
19,204 KB
testcase_27 AC 63 ms
17,464 KB
testcase_28 AC 16 ms
7,792 KB
testcase_29 AC 15 ms
7,856 KB
testcase_30 AC 16 ms
7,764 KB
testcase_31 AC 39 ms
9,972 KB
testcase_32 AC 39 ms
9,852 KB
testcase_33 AC 38 ms
9,856 KB
testcase_34 AC 38 ms
9,844 KB
testcase_35 AC 53 ms
19,588 KB
testcase_36 AC 40 ms
9,856 KB
testcase_37 AC 40 ms
9,992 KB
testcase_38 AC 15 ms
7,824 KB
testcase_39 AC 15 ms
7,692 KB
testcase_40 AC 50 ms
14,876 KB
testcase_41 AC 30 ms
11,032 KB
testcase_42 AC 16 ms
8,256 KB
testcase_43 AC 23 ms
8,820 KB
testcase_44 AC 18 ms
8,280 KB
testcase_45 AC 25 ms
8,724 KB
testcase_46 AC 21 ms
8,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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