結果

問題 No.394 ハーフパイプ(1)
ユーザー FVRChanFVRChan
提出日時 2017-09-29 09:58:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 371 bytes
コンパイル時間 2,266 ms
コンパイル使用メモリ 78,864 KB
実行使用メモリ 54,412 KB
最終ジャッジ日時 2024-04-27 16:12:53
合計ジャッジ時間 4,417 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
54,308 KB
testcase_01 AC 140 ms
54,328 KB
testcase_02 AC 134 ms
54,056 KB
testcase_03 AC 134 ms
54,412 KB
testcase_04 AC 136 ms
53,940 KB
testcase_05 AC 137 ms
54,124 KB
testcase_06 AC 138 ms
54,164 KB
testcase_07 AC 135 ms
54,148 KB
testcase_08 AC 134 ms
54,156 KB
testcase_09 AC 136 ms
54,248 KB
testcase_10 AC 136 ms
54,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
public class Main{
	public static void main(String args[])throws Exception{
		Scanner sc=new Scanner(System.in);
		int are[]=new int[6];
		for(int i=0;i<are.length;i++)are[i]=sc.nextInt();
		Arrays.sort(are);
		double ave=0.0;
		for(int i=1;i<are.length-1;i++)ave+=are[i];
		ave/=4;
		System.out.printf("%.2f",ave);
	}
}
0