結果

問題 No.394 ハーフパイプ(1)
ユーザー YOSHIYOSHI
提出日時 2021-03-13 20:08:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 621 bytes
コンパイル時間 3,619 ms
コンパイル使用メモリ 75,844 KB
実行使用メモリ 41,392 KB
最終ジャッジ日時 2024-04-23 10:21:45
合計ジャッジ時間 5,667 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,084 KB
testcase_01 AC 125 ms
40,932 KB
testcase_02 AC 123 ms
41,124 KB
testcase_03 AC 111 ms
40,116 KB
testcase_04 AC 127 ms
41,236 KB
testcase_05 AC 120 ms
41,192 KB
testcase_06 AC 123 ms
41,304 KB
testcase_07 AC 123 ms
41,076 KB
testcase_08 AC 119 ms
41,392 KB
testcase_09 AC 123 ms
41,264 KB
testcase_10 AC 122 ms
40,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No00000394_Main3 {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String[] strArr = br.readLine().split(" ");
		int[] arr = new int[strArr.length];
		for(int i = 0; i < strArr.length; i++) {
			arr[i] = Integer.parseInt(strArr[i]);
		}
		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