結果

問題 No.394 ハーフパイプ(1)
ユーザー cande398cande398
提出日時 2017-10-09 22:20:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 1,822 ms
コンパイル使用メモリ 74,732 KB
実行使用メモリ 41,216 KB
最終ジャッジ日時 2024-04-28 14:27:32
合計ジャッジ時間 3,649 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
40,064 KB
testcase_01 AC 115 ms
40,180 KB
testcase_02 AC 117 ms
40,840 KB
testcase_03 AC 103 ms
40,052 KB
testcase_04 AC 103 ms
40,484 KB
testcase_05 AC 104 ms
40,132 KB
testcase_06 AC 115 ms
41,216 KB
testcase_07 AC 108 ms
41,156 KB
testcase_08 AC 118 ms
41,076 KB
testcase_09 AC 106 ms
40,168 KB
testcase_10 AC 124 ms
41,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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