結果

問題 No.394 ハーフパイプ(1)
ユーザー YOSHIYOSHI
提出日時 2021-03-13 20:03:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 570 bytes
コンパイル時間 3,573 ms
コンパイル使用メモリ 88,924 KB
実行使用メモリ 54,260 KB
最終ジャッジ日時 2024-04-23 10:17:43
合計ジャッジ時間 5,764 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
53,608 KB
testcase_01 AC 107 ms
53,116 KB
testcase_02 AC 109 ms
53,876 KB
testcase_03 AC 122 ms
53,988 KB
testcase_04 AC 108 ms
53,900 KB
testcase_05 AC 100 ms
52,952 KB
testcase_06 AC 115 ms
54,096 KB
testcase_07 AC 110 ms
53,604 KB
testcase_08 AC 112 ms
54,260 KB
testcase_09 AC 110 ms
53,148 KB
testcase_10 AC 98 ms
52,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.stream.Stream;

public class No00000394_Main2 {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int[] arr = Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		Arrays.sort(arr);
		int score = 0;
		for(int i = 1; i <= 4; i++) {
			score += arr[i];
		}
		System.out.println(String.format("%.2f", score / 4.0));
	}
}
0