結果

問題 No.394 ハーフパイプ(1)
ユーザー kaoetayakaoetaya
提出日時 2016-11-28 13:06:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 3,093 ms
コンパイル使用メモリ 76,724 KB
実行使用メモリ 41,832 KB
最終ジャッジ日時 2024-05-05 14:32:26
合計ジャッジ時間 5,171 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
41,476 KB
testcase_01 AC 111 ms
40,184 KB
testcase_02 AC 114 ms
41,400 KB
testcase_03 AC 113 ms
40,480 KB
testcase_04 AC 123 ms
41,764 KB
testcase_05 AC 120 ms
41,376 KB
testcase_06 AC 118 ms
41,500 KB
testcase_07 AC 124 ms
41,336 KB
testcase_08 AC 111 ms
40,464 KB
testcase_09 AC 129 ms
41,832 KB
testcase_10 AC 113 ms
40,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class pre {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
		int judge[] = new int[6];
		
		for(int i=0;i<6;i++){
			judge[i] = s.nextInt();
		}
		
		Arrays.sort(judge);
		
		System.out.printf("%.2f\n",(double)(judge[1] + judge[2] + judge[3] + judge[4]) / 4.0);
    }
}
0