結果

問題 No.549 素材合成システム
ユーザー RisenRisen
提出日時 2017-07-28 22:47:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 556 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 5,059 ms
コンパイル使用メモリ 103,596 KB
実行使用メモリ 30,892 KB
最終ジャッジ日時 2023-07-31 10:14:23
合計ジャッジ時間 22,085 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,804 KB
testcase_01 AC 62 ms
21,688 KB
testcase_02 AC 61 ms
23,672 KB
testcase_03 AC 61 ms
23,780 KB
testcase_04 AC 63 ms
21,688 KB
testcase_05 AC 60 ms
21,840 KB
testcase_06 AC 60 ms
21,692 KB
testcase_07 AC 547 ms
28,888 KB
testcase_08 AC 552 ms
30,792 KB
testcase_09 AC 550 ms
28,824 KB
testcase_10 AC 555 ms
30,784 KB
testcase_11 AC 549 ms
28,888 KB
testcase_12 AC 548 ms
28,808 KB
testcase_13 AC 546 ms
28,800 KB
testcase_14 AC 551 ms
30,892 KB
testcase_15 AC 556 ms
28,820 KB
testcase_16 AC 541 ms
28,776 KB
testcase_17 AC 541 ms
29,732 KB
testcase_18 AC 374 ms
27,000 KB
testcase_19 AC 491 ms
27,520 KB
testcase_20 AC 456 ms
27,480 KB
testcase_21 AC 453 ms
28,920 KB
testcase_22 AC 414 ms
28,680 KB
testcase_23 AC 541 ms
29,240 KB
testcase_24 AC 478 ms
28,464 KB
testcase_25 AC 403 ms
28,104 KB
testcase_26 AC 532 ms
30,732 KB
testcase_27 AC 424 ms
30,132 KB
testcase_28 AC 63 ms
21,836 KB
testcase_29 AC 63 ms
23,692 KB
testcase_30 AC 62 ms
23,808 KB
testcase_31 AC 533 ms
27,672 KB
testcase_32 AC 529 ms
27,544 KB
testcase_33 AC 526 ms
29,696 KB
testcase_34 AC 519 ms
27,616 KB
testcase_35 AC 528 ms
29,288 KB
testcase_36 AC 525 ms
29,708 KB
testcase_37 AC 543 ms
29,832 KB
testcase_38 AC 58 ms
21,848 KB
testcase_39 AC 61 ms
21,864 KB
testcase_40 AC 258 ms
24,532 KB
testcase_41 AC 115 ms
20,808 KB
testcase_42 AC 70 ms
19,864 KB
testcase_43 AC 137 ms
22,980 KB
testcase_44 AC 76 ms
22,368 KB
testcase_45 AC 153 ms
23,192 KB
testcase_46 AC 102 ms
22,780 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Solution
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine());
        var x = Console.ReadLine().Split(' ').Select(int.Parse).OrderBy(i => i).ToList();

        while (x.Count > 1)
        {
            x[x.Count - 1] += x[0] / 2;
            x.RemoveAt(0);
        }

        Console.WriteLine(x.First());
    }
}
0