結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,220 KB
testcase_01 AC 25 ms
25,232 KB
testcase_02 AC 25 ms
25,372 KB
testcase_03 AC 25 ms
25,232 KB
testcase_04 AC 25 ms
25,100 KB
testcase_05 AC 25 ms
25,008 KB
testcase_06 AC 26 ms
23,092 KB
testcase_07 AC 72 ms
28,840 KB
testcase_08 AC 77 ms
35,140 KB
testcase_09 AC 72 ms
33,220 KB
testcase_10 AC 75 ms
31,012 KB
testcase_11 AC 79 ms
33,120 KB
testcase_12 AC 77 ms
29,104 KB
testcase_13 AC 76 ms
30,924 KB
testcase_14 AC 77 ms
31,012 KB
testcase_15 AC 73 ms
31,140 KB
testcase_16 AC 72 ms
31,260 KB
testcase_17 AC 61 ms
29,720 KB
testcase_18 AC 55 ms
27,264 KB
testcase_19 AC 59 ms
29,844 KB
testcase_20 AC 59 ms
31,676 KB
testcase_21 AC 64 ms
31,012 KB
testcase_22 AC 63 ms
32,912 KB
testcase_23 AC 67 ms
31,316 KB
testcase_24 AC 69 ms
30,644 KB
testcase_25 AC 67 ms
30,368 KB
testcase_26 AC 75 ms
30,716 KB
testcase_27 AC 67 ms
30,540 KB
testcase_28 AC 26 ms
25,364 KB
testcase_29 AC 26 ms
25,232 KB
testcase_30 AC 26 ms
25,136 KB
testcase_31 AC 60 ms
29,852 KB
testcase_32 AC 63 ms
31,816 KB
testcase_33 AC 63 ms
29,856 KB
testcase_34 AC 63 ms
29,640 KB
testcase_35 AC 68 ms
31,280 KB
testcase_36 AC 61 ms
29,984 KB
testcase_37 AC 60 ms
31,808 KB
testcase_38 AC 24 ms
25,392 KB
testcase_39 AC 26 ms
27,396 KB
testcase_40 AC 62 ms
29,308 KB
testcase_41 AC 46 ms
26,620 KB
testcase_42 AC 35 ms
25,868 KB
testcase_43 AC 40 ms
26,772 KB
testcase_44 AC 32 ms
28,164 KB
testcase_45 AC 41 ms
28,224 KB
testcase_46 AC 37 ms
26,392 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