結果

問題 No.394 ハーフパイプ(1)
ユーザー matsuyoshi30matsuyoshi30
提出日時 2018-05-06 10:52:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 393 bytes
コンパイル時間 2,174 ms
コンパイル使用メモリ 72,464 KB
実行使用メモリ 56,380 KB
最終ジャッジ日時 2023-09-10 10:43:14
合計ジャッジ時間 4,690 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,916 KB
testcase_01 AC 126 ms
56,040 KB
testcase_02 AC 125 ms
56,216 KB
testcase_03 AC 125 ms
56,272 KB
testcase_04 AC 125 ms
56,336 KB
testcase_05 AC 126 ms
56,380 KB
testcase_06 AC 124 ms
55,672 KB
testcase_07 AC 130 ms
55,904 KB
testcase_08 AC 135 ms
55,896 KB
testcase_09 AC 135 ms
56,128 KB
testcase_10 AC 133 ms
55,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] s = new int[6];
        for(int i = 0; i < 6; i++)
            s[i] = in.nextInt();

        Arrays.sort(s);

        int sum = 0;
        for(int i = 1; i < 5; i++)
            sum += s[i];

        System.out.printf("%.2f\n", (double)sum / 4.0);
    }
}
0