結果

問題 No.549 素材合成システム
ユーザー RisenRisen
提出日時 2017-07-28 22:47:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 484 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 4,206 ms
コンパイル使用メモリ 105,856 KB
実行使用メモリ 27,904 KB
最終ジャッジ日時 2024-04-18 10:42:26
合計ジャッジ時間 18,557 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
19,200 KB
testcase_01 AC 29 ms
19,072 KB
testcase_02 AC 29 ms
19,456 KB
testcase_03 AC 30 ms
19,072 KB
testcase_04 AC 28 ms
19,072 KB
testcase_05 AC 28 ms
19,328 KB
testcase_06 AC 31 ms
19,200 KB
testcase_07 AC 469 ms
27,392 KB
testcase_08 AC 474 ms
27,392 KB
testcase_09 AC 480 ms
27,520 KB
testcase_10 AC 473 ms
27,136 KB
testcase_11 AC 468 ms
27,392 KB
testcase_12 AC 470 ms
27,136 KB
testcase_13 AC 472 ms
27,392 KB
testcase_14 AC 461 ms
27,264 KB
testcase_15 AC 484 ms
27,264 KB
testcase_16 AC 474 ms
27,520 KB
testcase_17 AC 443 ms
25,344 KB
testcase_18 AC 319 ms
24,448 KB
testcase_19 AC 419 ms
25,088 KB
testcase_20 AC 399 ms
24,832 KB
testcase_21 AC 377 ms
26,752 KB
testcase_22 AC 354 ms
26,880 KB
testcase_23 AC 455 ms
27,904 KB
testcase_24 AC 399 ms
26,880 KB
testcase_25 AC 331 ms
26,112 KB
testcase_26 AC 443 ms
27,136 KB
testcase_27 AC 350 ms
25,856 KB
testcase_28 AC 31 ms
19,072 KB
testcase_29 AC 29 ms
19,072 KB
testcase_30 AC 28 ms
19,328 KB
testcase_31 AC 445 ms
25,344 KB
testcase_32 AC 444 ms
25,344 KB
testcase_33 AC 452 ms
25,216 KB
testcase_34 AC 453 ms
25,216 KB
testcase_35 AC 465 ms
27,520 KB
testcase_36 AC 470 ms
25,472 KB
testcase_37 AC 450 ms
25,216 KB
testcase_38 AC 30 ms
19,072 KB
testcase_39 AC 29 ms
19,456 KB
testcase_40 AC 208 ms
23,680 KB
testcase_41 AC 78 ms
21,448 KB
testcase_42 AC 36 ms
19,840 KB
testcase_43 AC 92 ms
21,520 KB
testcase_44 AC 41 ms
20,352 KB
testcase_45 AC 111 ms
21,732 KB
testcase_46 AC 65 ms
21,120 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