結果

問題 No.394 ハーフパイプ(1)
ユーザー huffman56huffman56
提出日時 2022-11-15 07:20:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 586 bytes
コンパイル時間 2,514 ms
コンパイル使用メモリ 104,276 KB
実行使用メモリ 24,340 KB
最終ジャッジ日時 2023-10-14 13:43:52
合計ジャッジ時間 3,469 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
24,264 KB
testcase_01 AC 70 ms
24,168 KB
testcase_02 AC 64 ms
24,196 KB
testcase_03 AC 66 ms
24,208 KB
testcase_04 AC 69 ms
24,160 KB
testcase_05 AC 68 ms
24,248 KB
testcase_06 AC 69 ms
24,280 KB
testcase_07 AC 68 ms
24,168 KB
testcase_08 AC 66 ms
24,340 KB
testcase_09 AC 68 ms
24,152 KB
testcase_10 AC 66 ms
22,328 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;
using System.Numerics;
using static System.Math;

namespace SortItems
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = Console.ReadLine().Split().Select(double.Parse).ToArray();
            double cnt = 0.00;

            Array.Sort(n);

            for (var i = 1; i < n.Length - 1; i++)
            {
                cnt += n[i];
            }

            

            Console.WriteLine(string.Format("{0:0.00}", cnt / (n.Length-2)));
            


        }
    }
}
0