結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
18,944 KB
testcase_01 AC 24 ms
18,944 KB
testcase_02 AC 24 ms
18,944 KB
testcase_03 AC 24 ms
19,072 KB
testcase_04 AC 25 ms
18,816 KB
testcase_05 AC 25 ms
19,072 KB
testcase_06 AC 23 ms
18,944 KB
testcase_07 AC 76 ms
25,856 KB
testcase_08 AC 74 ms
25,856 KB
testcase_09 AC 79 ms
25,728 KB
testcase_10 AC 74 ms
25,600 KB
testcase_11 AC 75 ms
25,728 KB
testcase_12 AC 74 ms
25,856 KB
testcase_13 AC 74 ms
25,856 KB
testcase_14 AC 73 ms
25,856 KB
testcase_15 AC 74 ms
25,984 KB
testcase_16 AC 73 ms
25,856 KB
testcase_17 AC 61 ms
23,808 KB
testcase_18 AC 56 ms
23,040 KB
testcase_19 AC 61 ms
23,680 KB
testcase_20 AC 59 ms
23,552 KB
testcase_21 AC 63 ms
25,472 KB
testcase_22 AC 62 ms
25,344 KB
testcase_23 AC 66 ms
26,240 KB
testcase_24 AC 72 ms
25,344 KB
testcase_25 AC 64 ms
24,704 KB
testcase_26 AC 71 ms
25,728 KB
testcase_27 AC 65 ms
24,832 KB
testcase_28 AC 24 ms
18,816 KB
testcase_29 AC 24 ms
18,944 KB
testcase_30 AC 24 ms
18,944 KB
testcase_31 AC 60 ms
23,936 KB
testcase_32 AC 59 ms
23,936 KB
testcase_33 AC 61 ms
23,936 KB
testcase_34 AC 61 ms
24,064 KB
testcase_35 AC 67 ms
26,368 KB
testcase_36 AC 62 ms
23,808 KB
testcase_37 AC 61 ms
23,936 KB
testcase_38 AC 26 ms
19,072 KB
testcase_39 AC 26 ms
18,816 KB
testcase_40 AC 58 ms
23,096 KB
testcase_41 AC 41 ms
21,368 KB
testcase_42 AC 29 ms
19,584 KB
testcase_43 AC 38 ms
20,732 KB
testcase_44 AC 32 ms
20,096 KB
testcase_45 AC 42 ms
21,584 KB
testcase_46 AC 36 ms
20,608 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