結果

問題 No.549 素材合成システム
ユーザー kokatsukokatsu
提出日時 2021-11-01 00:12:40
言語 D
(dmd 2.106.1)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 2,090 ms
コンパイル使用メモリ 208,196 KB
実行使用メモリ 8,688 KB
最終ジャッジ日時 2023-09-04 14:45:30
合計ジャッジ時間 5,129 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 26 ms
8,224 KB
testcase_08 AC 26 ms
7,456 KB
testcase_09 AC 25 ms
7,364 KB
testcase_10 AC 26 ms
8,308 KB
testcase_11 AC 25 ms
7,932 KB
testcase_12 AC 26 ms
8,204 KB
testcase_13 AC 26 ms
7,496 KB
testcase_14 AC 26 ms
7,252 KB
testcase_15 AC 25 ms
7,456 KB
testcase_16 AC 26 ms
8,688 KB
testcase_17 AC 13 ms
7,152 KB
testcase_18 AC 11 ms
6,880 KB
testcase_19 AC 13 ms
7,440 KB
testcase_20 AC 12 ms
7,144 KB
testcase_21 AC 17 ms
7,768 KB
testcase_22 AC 16 ms
7,656 KB
testcase_23 AC 18 ms
8,128 KB
testcase_24 AC 24 ms
7,944 KB
testcase_25 AC 21 ms
7,132 KB
testcase_26 AC 25 ms
7,620 KB
testcase_27 AC 22 ms
7,820 KB
testcase_28 AC 2 ms
4,376 KB
testcase_29 AC 2 ms
4,376 KB
testcase_30 AC 2 ms
4,376 KB
testcase_31 AC 13 ms
7,776 KB
testcase_32 AC 14 ms
8,136 KB
testcase_33 AC 13 ms
8,136 KB
testcase_34 AC 12 ms
7,960 KB
testcase_35 AC 18 ms
7,984 KB
testcase_36 AC 13 ms
8,144 KB
testcase_37 AC 13 ms
7,804 KB
testcase_38 AC 1 ms
4,380 KB
testcase_39 AC 1 ms
4,376 KB
testcase_40 AC 17 ms
6,072 KB
testcase_41 AC 8 ms
4,540 KB
testcase_42 AC 2 ms
4,380 KB
testcase_43 AC 7 ms
6,496 KB
testcase_44 AC 3 ms
4,380 KB
testcase_45 AC 6 ms
4,676 KB
testcase_46 AC 4 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main() {
    int N;
    readf("%d\n", N);

    auto x = readln.chomp.split.to!(long[]);
    
    x.sort!"a > b";

    long res = x[0];
    foreach (i; 1 .. N) {
        res += x[i] / 2;
    }

    res.writeln;
}
0