結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-01-04 19:37:34 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 560 bytes |
| コンパイル時間 | 2,285 ms |
| コンパイル使用メモリ | 74,708 KB |
| 実行使用メモリ | 54,448 KB |
| 最終ジャッジ日時 | 2024-12-17 19:33:13 |
| 合計ジャッジ時間 | 4,828 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] scores = new int[6];
for (int i = 0; i < scores.length; i++) {
scores[i] = sc.nextInt();
}
Arrays.sort(scores);
int scoreSum = 0;
for (int i = 1; i < scores.length - 1; i++) {
scoreSum += scores[i];
}
double socore = (double) scoreSum / 4;
System.out.printf("%.2f\n", socore);
}
}
samplelpmas