結果

問題 No.394 ハーフパイプ(1)
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 15:41:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 468 bytes
コンパイル時間 2,084 ms
コンパイル使用メモリ 75,696 KB
実行使用メモリ 56,368 KB
最終ジャッジ日時 2023-09-21 10:38:54
合計ジャッジ時間 3,997 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,964 KB
testcase_01 AC 121 ms
56,260 KB
testcase_02 AC 120 ms
56,156 KB
testcase_03 AC 117 ms
55,880 KB
testcase_04 AC 120 ms
56,032 KB
testcase_05 AC 120 ms
56,120 KB
testcase_06 AC 119 ms
55,628 KB
testcase_07 AC 120 ms
56,188 KB
testcase_08 AC 121 ms
56,016 KB
testcase_09 AC 116 ms
56,368 KB
testcase_10 AC 121 ms
56,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve();
	}

	private static void input(){
	}

	private static void solve(){
		System.out.printf("%.2f\n",
				IntStream.of(
				s.nextInt(),
				s.nextInt(),
				s.nextInt(),
				s.nextInt(),
				s.nextInt(),
				s.nextInt())
				.sorted()
				.skip(1).limit(4).
				sum()

				/4.0);
	}
}
0