結果

問題 No.549 素材合成システム
ユーザー mbanmban
提出日時 2017-08-26 15:14:44
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 509 bytes
コンパイル時間 708 ms
コンパイル使用メモリ 112,384 KB
実行使用メモリ 33,100 KB
最終ジャッジ日時 2024-04-23 17:09:25
合計ジャッジ時間 4,363 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
25,396 KB
testcase_01 AC 26 ms
25,360 KB
testcase_02 AC 25 ms
23,476 KB
testcase_03 AC 26 ms
25,488 KB
testcase_04 AC 26 ms
25,500 KB
testcase_05 AC 28 ms
25,012 KB
testcase_06 AC 26 ms
23,348 KB
testcase_07 AC 76 ms
31,004 KB
testcase_08 AC 75 ms
31,016 KB
testcase_09 AC 74 ms
31,004 KB
testcase_10 AC 72 ms
28,844 KB
testcase_11 AC 75 ms
33,100 KB
testcase_12 AC 74 ms
32,720 KB
testcase_13 AC 74 ms
32,716 KB
testcase_14 AC 74 ms
31,020 KB
testcase_15 AC 73 ms
30,884 KB
testcase_16 AC 74 ms
31,012 KB
testcase_17 AC 63 ms
29,988 KB
testcase_18 AC 56 ms
29,448 KB
testcase_19 AC 59 ms
31,700 KB
testcase_20 AC 58 ms
27,716 KB
testcase_21 AC 61 ms
31,004 KB
testcase_22 AC 64 ms
30,772 KB
testcase_23 AC 67 ms
31,444 KB
testcase_24 AC 74 ms
30,512 KB
testcase_25 AC 70 ms
28,324 KB
testcase_26 AC 73 ms
31,200 KB
testcase_27 AC 67 ms
30,436 KB
testcase_28 AC 27 ms
25,500 KB
testcase_29 AC 28 ms
25,244 KB
testcase_30 AC 28 ms
27,164 KB
testcase_31 AC 63 ms
29,856 KB
testcase_32 AC 60 ms
29,852 KB
testcase_33 AC 62 ms
29,728 KB
testcase_34 AC 60 ms
29,980 KB
testcase_35 AC 65 ms
29,484 KB
testcase_36 AC 63 ms
29,992 KB
testcase_37 AC 62 ms
31,824 KB
testcase_38 AC 26 ms
25,244 KB
testcase_39 AC 26 ms
23,224 KB
testcase_40 AC 57 ms
27,276 KB
testcase_41 AC 42 ms
24,504 KB
testcase_42 AC 29 ms
25,612 KB
testcase_43 AC 39 ms
28,152 KB
testcase_44 AC 32 ms
28,112 KB
testcase_45 AC 41 ms
26,556 KB
testcase_46 AC 37 ms
28,420 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.Linq;
using System.Collections.Generic;

static class Program{
    static void Main(){
        new Magatro().Solve();
    }
}

class Magatro{
    private int N;
    private int[]A;
    public void Solve(){
        N = int.Parse(Console.ReadLine());
        A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        Array.Sort(A);
        int anser = A[N-1];
        for(int i =0;i<N-1;i++){
            anser+=A[i]/2;
        }
        Console.WriteLine(anser);
    }
}
0