結果

問題 No.549 素材合成システム
ユーザー nanaenanae
提出日時 2017-05-16 17:58:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 11,880 KB
実行使用メモリ 21,648 KB
最終ジャッジ日時 2023-10-17 06:48:12
合計ジャッジ時間 4,120 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,136 KB
testcase_01 AC 29 ms
10,136 KB
testcase_02 AC 29 ms
10,136 KB
testcase_03 AC 28 ms
10,136 KB
testcase_04 AC 28 ms
10,136 KB
testcase_05 AC 29 ms
10,136 KB
testcase_06 AC 29 ms
10,136 KB
testcase_07 AC 73 ms
21,364 KB
testcase_08 AC 73 ms
21,364 KB
testcase_09 AC 73 ms
21,364 KB
testcase_10 AC 73 ms
21,364 KB
testcase_11 AC 72 ms
21,364 KB
testcase_12 AC 73 ms
21,364 KB
testcase_13 AC 74 ms
21,364 KB
testcase_14 AC 73 ms
21,364 KB
testcase_15 AC 73 ms
21,368 KB
testcase_16 AC 73 ms
21,364 KB
testcase_17 AC 59 ms
11,928 KB
testcase_18 AC 53 ms
11,288 KB
testcase_19 AC 58 ms
11,688 KB
testcase_20 AC 56 ms
11,912 KB
testcase_21 AC 69 ms
20,348 KB
testcase_22 AC 67 ms
19,368 KB
testcase_23 AC 73 ms
21,648 KB
testcase_24 AC 70 ms
20,500 KB
testcase_25 AC 65 ms
19,276 KB
testcase_26 AC 72 ms
21,192 KB
testcase_27 AC 66 ms
19,436 KB
testcase_28 AC 28 ms
10,136 KB
testcase_29 AC 29 ms
10,136 KB
testcase_30 AC 29 ms
10,136 KB
testcase_31 AC 60 ms
11,928 KB
testcase_32 AC 59 ms
11,928 KB
testcase_33 AC 61 ms
11,928 KB
testcase_34 AC 60 ms
11,928 KB
testcase_35 AC 73 ms
21,628 KB
testcase_36 AC 60 ms
11,928 KB
testcase_37 AC 60 ms
11,928 KB
testcase_38 AC 29 ms
10,136 KB
testcase_39 AC 29 ms
10,136 KB
testcase_40 AC 56 ms
16,784 KB
testcase_41 AC 41 ms
13,144 KB
testcase_42 AC 30 ms
10,344 KB
testcase_43 AC 40 ms
10,776 KB
testcase_44 AC 32 ms
10,280 KB
testcase_45 AC 42 ms
10,800 KB
testcase_46 AC 37 ms
10,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def solve():
    N = int(input())
    x = [int(i) for i in input().split()]

    k = x.index(max(x))

    for i in range(N):
        if i != k:
            x[k] += x[i] // 2

    print(x[k])

if __name__ == '__main__':
    solve()
0