結果

問題 No.394 ハーフパイプ(1)
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2017-01-12 18:29:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 2,280 ms
コンパイル使用メモリ 72,136 KB
実行使用メモリ 56,172 KB
最終ジャッジ日時 2023-08-23 08:48:39
合計ジャッジ時間 3,997 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,684 KB
testcase_01 AC 124 ms
56,152 KB
testcase_02 AC 125 ms
55,872 KB
testcase_03 AC 125 ms
56,172 KB
testcase_04 AC 124 ms
55,936 KB
testcase_05 AC 122 ms
55,548 KB
testcase_06 AC 124 ms
55,900 KB
testcase_07 AC 123 ms
55,936 KB
testcase_08 AC 123 ms
55,836 KB
testcase_09 AC 122 ms
55,544 KB
testcase_10 AC 126 ms
55,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
	}
}
0