結果

問題 No.394 ハーフパイプ(1)
ユーザー YOSHIYOSHI
提出日時 2021-03-13 20:01:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 3,954 ms
コンパイル使用メモリ 79,832 KB
実行使用メモリ 41,204 KB
最終ジャッジ日時 2024-04-23 10:15:29
合計ジャッジ時間 5,945 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
41,204 KB
testcase_01 AC 101 ms
40,784 KB
testcase_02 AC 103 ms
40,648 KB
testcase_03 AC 109 ms
40,656 KB
testcase_04 AC 100 ms
39,736 KB
testcase_05 AC 94 ms
39,392 KB
testcase_06 AC 103 ms
41,124 KB
testcase_07 AC 98 ms
40,492 KB
testcase_08 AC 102 ms
40,164 KB
testcase_09 AC 104 ms
41,096 KB
testcase_10 AC 101 ms
40,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No00000394_Main {
	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).sorted().toArray();
		int score = 0;
		for(int i = 1; i <= 4; i++) {
			score += arr[i];
		}
		System.out.println(String.format("%.2f", score / 4.0));
	}
}
0