結果

問題 No.549 素材合成システム
ユーザー 6soukiti296soukiti29
提出日時 2017-07-28 22:48:55
言語 Nim
(2.0.2)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 3,013 ms
コンパイル使用メモリ 68,448 KB
実行使用メモリ 14,364 KB
最終ジャッジ日時 2023-09-12 13:41:45
合計ジャッジ時間 6,720 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 25 ms
14,216 KB
testcase_08 AC 21 ms
12,632 KB
testcase_09 AC 24 ms
14,212 KB
testcase_10 AC 24 ms
14,352 KB
testcase_11 AC 24 ms
12,708 KB
testcase_12 AC 25 ms
14,364 KB
testcase_13 AC 25 ms
14,288 KB
testcase_14 AC 24 ms
12,684 KB
testcase_15 AC 25 ms
14,160 KB
testcase_16 AC 25 ms
14,272 KB
testcase_17 AC 20 ms
12,908 KB
testcase_18 AC 16 ms
10,456 KB
testcase_19 AC 18 ms
11,112 KB
testcase_20 AC 17 ms
10,848 KB
testcase_21 AC 20 ms
11,008 KB
testcase_22 AC 20 ms
10,936 KB
testcase_23 AC 23 ms
12,908 KB
testcase_24 AC 19 ms
10,972 KB
testcase_25 AC 18 ms
10,580 KB
testcase_26 AC 20 ms
11,432 KB
testcase_27 AC 19 ms
10,748 KB
testcase_28 AC 1 ms
4,376 KB
testcase_29 AC 1 ms
4,376 KB
testcase_30 AC 2 ms
4,376 KB
testcase_31 AC 20 ms
13,124 KB
testcase_32 AC 19 ms
12,972 KB
testcase_33 AC 18 ms
13,008 KB
testcase_34 AC 19 ms
12,948 KB
testcase_35 AC 25 ms
12,776 KB
testcase_36 AC 19 ms
13,108 KB
testcase_37 AC 19 ms
12,960 KB
testcase_38 AC 2 ms
4,376 KB
testcase_39 AC 2 ms
4,376 KB
testcase_40 AC 14 ms
9,312 KB
testcase_41 AC 7 ms
5,328 KB
testcase_42 AC 2 ms
4,380 KB
testcase_43 AC 7 ms
6,220 KB
testcase_44 AC 3 ms
4,376 KB
testcase_45 AC 7 ms
6,396 KB
testcase_46 AC 5 ms
4,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils,strutils,math
var
    N = stdin.readline.parseInt
    X = stdin.readline.split.map(parseInt)
    Mx = max(X)
proc harf(i : int):int=
    return i div 2
Mx += Mx mod 2
Mx = Mx div 2
X = X.map(harf)
Mx += sum(X)
echo Mx
0