結果

問題 No.394 ハーフパイプ(1)
ユーザー kaoetayakaoetaya
提出日時 2016-11-28 13:06:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 4,826 ms
コンパイル使用メモリ 72,548 KB
実行使用メモリ 56,508 KB
最終ジャッジ日時 2023-08-18 08:44:10
合計ジャッジ時間 5,584 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,068 KB
testcase_01 AC 124 ms
55,936 KB
testcase_02 AC 127 ms
55,928 KB
testcase_03 AC 123 ms
56,132 KB
testcase_04 AC 127 ms
56,052 KB
testcase_05 AC 128 ms
56,220 KB
testcase_06 AC 127 ms
55,896 KB
testcase_07 AC 127 ms
56,012 KB
testcase_08 AC 129 ms
56,508 KB
testcase_09 AC 127 ms
55,876 KB
testcase_10 AC 127 ms
56,108 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