結果

問題 No.394 ハーフパイプ(1)
ユーザー tsunabittsunabit
提出日時 2018-06-03 04:09:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 4,005 ms
コンパイル使用メモリ 77,356 KB
実行使用メモリ 57,836 KB
最終ジャッジ日時 2023-09-12 21:43:49
合計ジャッジ時間 6,198 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,868 KB
testcase_01 AC 129 ms
55,560 KB
testcase_02 AC 129 ms
55,696 KB
testcase_03 AC 129 ms
55,836 KB
testcase_04 AC 129 ms
55,684 KB
testcase_05 AC 128 ms
55,748 KB
testcase_06 AC 129 ms
56,352 KB
testcase_07 AC 129 ms
57,836 KB
testcase_08 AC 130 ms
55,964 KB
testcase_09 AC 129 ms
56,092 KB
testcase_10 AC 128 ms
56,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
public class No394 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int[] s = Stream.of(sc.nextLine().split(" ", 0)).mapToInt(Integer::parseInt).toArray();
		Arrays.sort(s);
		System.out.printf("%.2f", (s[1] + s[2] + s[3] + s[4]) / 4.00);
	}
}
0