結果

問題 No.394 ハーフパイプ(1)
コンテスト
ユーザー TatsuDX
提出日時 2016-09-03 14:32:41
言語 Java
(openjdk 27 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
WA  
実行時間 -
コード長 653 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,597 ms
コンパイル使用メモリ 85,032 KB
実行使用メモリ 45,916 KB
最終ジャッジ日時 2026-09-23 11:43:05
合計ジャッジ時間 4,628 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double a, b, c, d, e, f, min, max;
		a = sc.nextDouble();
		min = a;
		max = a;
		b = sc.nextDouble();
		min = Math.min(min, b);
		max = Math.max(max, b);
		c = sc.nextDouble();
		min = Math.min(min, c);
		max = Math.max(max, c);
		d = sc.nextDouble();
		min = Math.min(min, d);
		max = Math.max(max, d);
		e = sc.nextDouble();
		min = Math.min(min, e);
		max = Math.max(max, e);
		f = sc.nextDouble();
		min = Math.min(min, f);
		max = Math.max(max, f);
		System.out.println((a + b + c + d + e + f - min - max) / 4);
	}
}
0