結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
fkwnw3_1243
|
| 提出日時 | 2017-05-04 12:08:26 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 128 ms / 2,000 ms |
| コード長 | 735 bytes |
| コンパイル時間 | 2,147 ms |
| コンパイル使用メモリ | 75,376 KB |
| 実行使用メモリ | 55,824 KB |
| 最終ジャッジ日時 | 2024-09-14 07:00:49 |
| 合計ジャッジ時間 | 4,407 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String[] inputs = reader.readLine().split(" ");
int max = Integer.MIN_VALUE;
int min = Integer.MAX_VALUE;
int sum = 0;
for (int i = 0; i < 6; i++) {
int point = Integer.parseInt(inputs[i]);
max = Math.max(max, point);
min = Math.min(min, point);
sum += point;
}
sum = sum - min - max;
System.out.printf("%.2f",sum/(4.0));
}
}
fkwnw3_1243