結果

問題 No.549 素材合成システム
ユーザー kichirb3kichirb3
提出日時 2018-03-16 21:47:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 19,508 KB
最終ジャッジ日時 2023-08-23 11:57:43
合計ジャッジ時間 4,560 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,824 KB
testcase_01 AC 15 ms
7,828 KB
testcase_02 AC 15 ms
7,740 KB
testcase_03 AC 15 ms
7,876 KB
testcase_04 AC 16 ms
7,824 KB
testcase_05 AC 15 ms
7,812 KB
testcase_06 AC 15 ms
7,688 KB
testcase_07 AC 75 ms
19,336 KB
testcase_08 AC 74 ms
19,436 KB
testcase_09 AC 75 ms
19,480 KB
testcase_10 AC 75 ms
19,404 KB
testcase_11 AC 75 ms
19,352 KB
testcase_12 AC 76 ms
19,344 KB
testcase_13 AC 75 ms
19,404 KB
testcase_14 AC 74 ms
19,480 KB
testcase_15 AC 75 ms
19,328 KB
testcase_16 AC 76 ms
19,404 KB
testcase_17 AC 38 ms
9,948 KB
testcase_18 AC 35 ms
9,372 KB
testcase_19 AC 39 ms
9,632 KB
testcase_20 AC 37 ms
9,620 KB
testcase_21 AC 50 ms
18,504 KB
testcase_22 AC 48 ms
17,556 KB
testcase_23 AC 55 ms
19,012 KB
testcase_24 AC 69 ms
17,908 KB
testcase_25 AC 63 ms
16,920 KB
testcase_26 AC 74 ms
18,660 KB
testcase_27 AC 65 ms
17,516 KB
testcase_28 AC 16 ms
7,768 KB
testcase_29 AC 16 ms
7,824 KB
testcase_30 AC 16 ms
7,768 KB
testcase_31 AC 40 ms
9,872 KB
testcase_32 AC 41 ms
10,012 KB
testcase_33 AC 40 ms
9,968 KB
testcase_34 AC 40 ms
9,968 KB
testcase_35 AC 54 ms
19,508 KB
testcase_36 AC 42 ms
9,964 KB
testcase_37 AC 43 ms
10,016 KB
testcase_38 AC 16 ms
7,828 KB
testcase_39 AC 16 ms
7,956 KB
testcase_40 AC 50 ms
14,732 KB
testcase_41 AC 30 ms
11,072 KB
testcase_42 AC 17 ms
8,344 KB
testcase_43 AC 24 ms
8,784 KB
testcase_44 AC 18 ms
8,272 KB
testcase_45 AC 26 ms
8,848 KB
testcase_46 AC 22 ms
8,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
No.549 素材合成システム
https://yukicoder.me/problems/no/549

"""
import sys
from sys import stdin
input = stdin.readline


def solve(androids):
    androids.sort(reverse=True)
    ans = androids[0]
    for a in androids[1:]:
        ans += a // 2
    return ans


def main(args):
    N = int(input())
    androids = [int(x) for x in input().split()]
    ans = solve(androids)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])
0