結果
問題 | No.394 ハーフパイプ(1) |
ユーザー |
![]() |
提出日時 | 2017-01-12 18:29:49 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 131 ms / 2,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 2,663 ms |
コンパイル使用メモリ | 74,888 KB |
実行使用メモリ | 54,396 KB |
最終ジャッジ日時 | 2024-12-21 10:15:58 |
合計ジャッジ時間 | 4,208 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*; class Question394 { public static void main(String[] str) { Scanner scan = new Scanner(System.in); int score[] = new int[6]; double point = 0; for(int i=0; i<6; i++){ score[i] = scan.nextInt(); } Arrays.sort(score); for(int i=1; i<5; i++){ point += score[i]; } System.out.printf("%.2f\n",point/4); } }