結果

問題 No.549 素材合成システム
ユーザー roarisroaris
提出日時 2019-08-10 20:28:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 19,816 KB
最終ジャッジ日時 2023-09-26 23:40:31
合計ジャッジ時間 6,254 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,792 KB
testcase_01 AC 16 ms
7,880 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 16 ms
7,948 KB
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 16 ms
7,868 KB
testcase_06 AC 16 ms
7,928 KB
testcase_07 AC 73 ms
19,808 KB
testcase_08 AC 78 ms
19,800 KB
testcase_09 AC 73 ms
19,764 KB
testcase_10 AC 74 ms
19,808 KB
testcase_11 AC 75 ms
19,664 KB
testcase_12 AC 73 ms
19,772 KB
testcase_13 AC 74 ms
19,652 KB
testcase_14 AC 73 ms
19,792 KB
testcase_15 AC 74 ms
19,616 KB
testcase_16 AC 73 ms
19,664 KB
testcase_17 AC 58 ms
10,116 KB
testcase_18 AC 50 ms
9,516 KB
testcase_19 AC 56 ms
9,764 KB
testcase_20 AC 56 ms
9,808 KB
testcase_21 AC 67 ms
18,532 KB
testcase_22 AC 67 ms
17,396 KB
testcase_23 AC 74 ms
19,772 KB
testcase_24 AC 69 ms
18,656 KB
testcase_25 AC 63 ms
17,376 KB
testcase_26 AC 71 ms
19,212 KB
testcase_27 AC 65 ms
17,452 KB
testcase_28 AC 16 ms
7,864 KB
testcase_29 AC 16 ms
7,856 KB
testcase_30 AC 16 ms
7,912 KB
testcase_31 AC 66 ms
10,080 KB
testcase_32 AC 59 ms
9,928 KB
testcase_33 AC 60 ms
10,004 KB
testcase_34 AC 62 ms
10,120 KB
testcase_35 AC 74 ms
19,816 KB
testcase_36 AC 60 ms
10,004 KB
testcase_37 AC 59 ms
9,900 KB
testcase_38 AC 17 ms
7,844 KB
testcase_39 AC 16 ms
7,900 KB
testcase_40 AC 50 ms
14,928 KB
testcase_41 AC 31 ms
11,048 KB
testcase_42 AC 17 ms
8,448 KB
testcase_43 AC 31 ms
8,928 KB
testcase_44 AC 21 ms
8,348 KB
testcase_45 AC 34 ms
8,768 KB
testcase_46 AC 29 ms
8,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import floor

N = int(input())
x = list(map(int, input().split()))
m = max(x)
mark = x.index(m)
ans = 0

for i in range(N):
    if i == mark:
        ans += m
    else:
        ans += floor(x[i] / 2)

print(ans)
0