結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
kenji_shioya
|
| 提出日時 | 2016-07-24 15:55:28 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 2,000 ms |
| コード長 | 478 bytes |
| コンパイル時間 | 3,517 ms |
| コンパイル使用メモリ | 75,724 KB |
| 実行使用メモリ | 54,484 KB |
| 最終ジャッジ日時 | 2024-11-06 15:53:38 |
| 合計ジャッジ時間 | 5,791 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.util.*;
import java.text.DecimalFormat;
public class Exercise151{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
DecimalFormat df = new DecimalFormat("0.00");
int[] judges = new int[6];
for(int i = 0; i < 6; i++){
judges[i] = sc.nextInt();
}
Arrays.sort(judges);
int sum = 0;
for(int i = 1; i < 5; i++){
sum += judges[i];
}
System.out.println(df.format((double)sum / 4));
}
}
kenji_shioya