結果

問題 No.394 ハーフパイプ(1)
ユーザー CroweaCrowea
提出日時 2019-01-24 16:23:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 864 ms
コンパイル使用メモリ 67,828 KB
実行使用メモリ 25,928 KB
最終ジャッジ日時 2023-10-14 09:39:12
合計ジャッジ時間 2,629 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
23,788 KB
testcase_01 AC 71 ms
23,904 KB
testcase_02 AC 72 ms
25,928 KB
testcase_03 AC 72 ms
23,796 KB
testcase_04 AC 73 ms
25,664 KB
testcase_05 AC 73 ms
23,784 KB
testcase_06 AC 72 ms
23,804 KB
testcase_07 AC 72 ms
25,760 KB
testcase_08 AC 72 ms
25,804 KB
testcase_09 AC 71 ms
24,008 KB
testcase_10 AC 69 ms
21,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

    class Program
    {
        static void Main(string[] args)
        {
           var list = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
           list.Sort();
           list.RemoveAt(0);
           list.RemoveAt(list.Count()-1);
           Console.WriteLine("{0:f2}",list.Average());
        }
    }
0