結果

問題 No.549 素材合成システム
ユーザー sue_charosue_charo
提出日時 2017-07-28 22:43:39
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 595 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 10,896 KB
実行使用メモリ 20,424 KB
最終ジャッジ日時 2023-07-31 09:56:40
合計ジャッジ時間 4,936 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
8,836 KB
testcase_01 AC 22 ms
8,836 KB
testcase_02 AC 22 ms
8,864 KB
testcase_03 AC 21 ms
8,876 KB
testcase_04 AC 22 ms
8,776 KB
testcase_05 AC 22 ms
8,860 KB
testcase_06 AC 22 ms
8,880 KB
testcase_07 AC 82 ms
20,092 KB
testcase_08 AC 81 ms
20,056 KB
testcase_09 AC 81 ms
20,056 KB
testcase_10 AC 81 ms
20,088 KB
testcase_11 AC 80 ms
20,068 KB
testcase_12 AC 81 ms
20,064 KB
testcase_13 AC 82 ms
20,084 KB
testcase_14 AC 80 ms
20,148 KB
testcase_15 AC 80 ms
20,172 KB
testcase_16 AC 80 ms
20,060 KB
testcase_17 AC 44 ms
10,636 KB
testcase_18 AC 40 ms
10,020 KB
testcase_19 AC 44 ms
10,524 KB
testcase_20 AC 44 ms
10,416 KB
testcase_21 AC 55 ms
19,068 KB
testcase_22 AC 53 ms
18,092 KB
testcase_23 AC 60 ms
20,424 KB
testcase_24 AC 78 ms
19,236 KB
testcase_25 AC 71 ms
18,016 KB
testcase_26 AC 81 ms
19,892 KB
testcase_27 AC 71 ms
18,172 KB
testcase_28 AC 22 ms
8,832 KB
testcase_29 AC 22 ms
8,812 KB
testcase_30 AC 22 ms
8,832 KB
testcase_31 AC 46 ms
10,620 KB
testcase_32 AC 46 ms
10,620 KB
testcase_33 AC 47 ms
10,824 KB
testcase_34 AC 46 ms
10,704 KB
testcase_35 AC 58 ms
20,156 KB
testcase_36 AC 47 ms
10,808 KB
testcase_37 AC 47 ms
10,812 KB
testcase_38 AC 22 ms
8,964 KB
testcase_39 AC 22 ms
8,888 KB
testcase_40 AC 56 ms
15,484 KB
testcase_41 AC 35 ms
11,844 KB
testcase_42 AC 22 ms
9,108 KB
testcase_43 AC 30 ms
9,564 KB
testcase_44 AC 24 ms
9,020 KB
testcase_45 AC 32 ms
9,616 KB
testcase_46 AC 28 ms
9,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import collections, copy, heapq, itertools, math, sys
sys.setrecursionlimit(10 ** 7)
INF = 10 ** 20
MOD = 10 ** 9 + 7


def II(): return int(input())
def ILI(): return list(map(int, input().split()))
def IAI(LINE): return [ILI() for __ in range(LINE)]
def IDI(): return {key: value for key, value in ILI()}


def read():
    N = II()
    x = ILI()
    return N, x


def solve(N, x):
    x.sort()
    ans = x[-1]
    for i in range(N - 1):
        ans += x[i] // 2
    return ans


def main():
    params = read()
    print(solve(*params))


if __name__ == "__main__":
    main()
0