結果

問題 No.549 素材合成システム
ユーザー lenoleno
提出日時 2017-08-06 16:14:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,984 KB
最終ジャッジ日時 2024-04-20 03:50:46
合計ジャッジ時間 4,642 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 32 ms
10,880 KB
testcase_02 AC 32 ms
10,880 KB
testcase_03 AC 35 ms
10,880 KB
testcase_04 AC 32 ms
10,880 KB
testcase_05 AC 32 ms
10,880 KB
testcase_06 AC 31 ms
10,752 KB
testcase_07 AC 92 ms
20,556 KB
testcase_08 AC 91 ms
20,684 KB
testcase_09 AC 89 ms
20,556 KB
testcase_10 AC 93 ms
20,556 KB
testcase_11 AC 92 ms
20,556 KB
testcase_12 AC 91 ms
20,684 KB
testcase_13 AC 92 ms
20,488 KB
testcase_14 AC 89 ms
20,688 KB
testcase_15 AC 91 ms
20,688 KB
testcase_16 AC 91 ms
20,684 KB
testcase_17 AC 75 ms
12,624 KB
testcase_18 AC 65 ms
12,544 KB
testcase_19 AC 71 ms
12,496 KB
testcase_20 AC 70 ms
12,404 KB
testcase_21 AC 86 ms
19,672 KB
testcase_22 AC 85 ms
18,912 KB
testcase_23 AC 92 ms
20,984 KB
testcase_24 AC 89 ms
19,872 KB
testcase_25 AC 80 ms
18,788 KB
testcase_26 AC 90 ms
20,584 KB
testcase_27 AC 82 ms
18,932 KB
testcase_28 AC 31 ms
10,880 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 76 ms
12,752 KB
testcase_32 AC 78 ms
12,752 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 91 ms
20,660 KB
testcase_36 AC 77 ms
12,628 KB
testcase_37 AC 75 ms
12,648 KB
testcase_38 WA -
testcase_39 AC 32 ms
10,880 KB
testcase_40 AC 69 ms
16,652 KB
testcase_41 AC 48 ms
13,568 KB
testcase_42 WA -
testcase_43 AC 46 ms
11,392 KB
testcase_44 AC 37 ms
11,136 KB
testcase_45 AC 50 ms
11,648 KB
testcase_46 AC 42 ms
11,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

if __name__ == '__main__':
    N = int(input())
    x = list(map(int, input().split()))
    SUM = 0
    for i in range(N):
        SUM += x[i] // 2
    if max(x) % 2 == 1:
        SUM += int(math.ceil(max(x)))
    else:
        SUM += max(x) // 2
    print(SUM)
0