結果

問題 No.394 ハーフパイプ(1)
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-07-16 15:50:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 1,646 ms
コンパイル使用メモリ 113,332 KB
実行使用メモリ 28,460 KB
最終ジャッジ日時 2024-04-23 13:45:34
合計ジャッジ時間 2,123 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
26,472 KB
testcase_01 AC 35 ms
26,416 KB
testcase_02 AC 34 ms
26,468 KB
testcase_03 AC 34 ms
26,160 KB
testcase_04 AC 34 ms
25,956 KB
testcase_05 AC 34 ms
26,084 KB
testcase_06 AC 34 ms
28,460 KB
testcase_07 AC 34 ms
26,304 KB
testcase_08 AC 34 ms
26,088 KB
testcase_09 AC 34 ms
26,412 KB
testcase_10 AC 34 ms
27,684 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;

public class Program
{
	public static void Main()
	{
		int[] scores = Console.ReadLine().Split().Select(i => int.Parse(i))
			.OrderBy(i => i).ToArray();
		
		double sum = 0.0;
		for (int i = 1; i < 5; i++)
		{
			sum += scores[i];
		}
		Console.WriteLine("{0:##0.00}", sum / 4);
	}
}
0