結果

問題 No.394 ハーフパイプ(1)
ユーザー kano_town
提出日時 2016-07-15 22:24:10
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 438 bytes
コンパイル時間 3,694 ms
コンパイル使用メモリ 84,360 KB
実行使用メモリ 41,284 KB
最終ジャッジ日時 2024-10-15 04:09:38
合計ジャッジ時間 5,848 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Scanner;
public class Yukicoder394 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] s = new int[6];
        for (int i = 0; i < 6; i++) {
            s[i] = sc.nextInt();
        }
        Arrays.sort(s);
        System.out.println(new DecimalFormat(".00").format((s[1] + s[2] + s[3] + s[4])/4.0));
    }
}
0