結果

問題 No.549 素材合成システム
ユーザー mlihua09mlihua09
提出日時 2020-09-15 19:56:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 84,028 KB
最終ジャッジ日時 2023-09-04 01:55:09
合計ジャッジ時間 7,041 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,144 KB
testcase_01 AC 73 ms
71,264 KB
testcase_02 AC 76 ms
71,344 KB
testcase_03 AC 72 ms
71,140 KB
testcase_04 AC 73 ms
71,136 KB
testcase_05 AC 72 ms
71,432 KB
testcase_06 AC 72 ms
71,200 KB
testcase_07 AC 87 ms
83,364 KB
testcase_08 AC 88 ms
83,404 KB
testcase_09 AC 86 ms
83,592 KB
testcase_10 AC 89 ms
83,408 KB
testcase_11 AC 88 ms
83,468 KB
testcase_12 AC 87 ms
83,376 KB
testcase_13 AC 89 ms
83,220 KB
testcase_14 AC 88 ms
83,568 KB
testcase_15 AC 88 ms
83,588 KB
testcase_16 AC 91 ms
83,316 KB
testcase_17 AC 86 ms
82,636 KB
testcase_18 AC 83 ms
80,716 KB
testcase_19 AC 86 ms
82,512 KB
testcase_20 AC 84 ms
82,408 KB
testcase_21 AC 87 ms
82,560 KB
testcase_22 AC 87 ms
82,416 KB
testcase_23 AC 93 ms
83,668 KB
testcase_24 AC 87 ms
82,424 KB
testcase_25 AC 86 ms
81,668 KB
testcase_26 AC 87 ms
83,460 KB
testcase_27 AC 88 ms
82,004 KB
testcase_28 AC 74 ms
71,156 KB
testcase_29 AC 73 ms
71,384 KB
testcase_30 AC 75 ms
70,948 KB
testcase_31 AC 86 ms
82,224 KB
testcase_32 AC 87 ms
82,500 KB
testcase_33 AC 86 ms
82,384 KB
testcase_34 AC 87 ms
82,536 KB
testcase_35 AC 94 ms
84,028 KB
testcase_36 AC 87 ms
82,624 KB
testcase_37 AC 89 ms
82,676 KB
testcase_38 AC 74 ms
71,116 KB
testcase_39 AC 75 ms
71,160 KB
testcase_40 AC 88 ms
80,136 KB
testcase_41 AC 81 ms
76,744 KB
testcase_42 AC 81 ms
75,876 KB
testcase_43 AC 80 ms
77,076 KB
testcase_44 AC 78 ms
75,968 KB
testcase_45 AC 81 ms
77,976 KB
testcase_46 AC 81 ms
76,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

A = 0
B = 0

for x in map(int, input().split()):
    
    if x > A:
        B += A // 2
        A = x
    
    else:
        B += x // 2
        
print(A + B)
0