結果

問題 No.180 美しいWhitespace (2)
ユーザー ki_ki33ki_ki33
提出日時 2015-04-06 00:41:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 2,255 bytes
コンパイル時間 2,840 ms
コンパイル使用メモリ 84,008 KB
実行使用メモリ 61,396 KB
最終ジャッジ日時 2023-09-17 05:37:37
合計ジャッジ時間 154,363 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4,125 ms
55,872 KB
testcase_01 AC 4,123 ms
54,400 KB
testcase_02 AC 4,123 ms
56,092 KB
testcase_03 AC 4,125 ms
56,260 KB
testcase_04 AC 4,142 ms
55,712 KB
testcase_05 AC 4,164 ms
56,488 KB
testcase_06 AC 4,165 ms
56,900 KB
testcase_07 AC 4,169 ms
57,132 KB
testcase_08 AC 4,178 ms
57,028 KB
testcase_09 AC 4,190 ms
58,436 KB
testcase_10 AC 4,187 ms
58,856 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 4,180 ms
59,104 KB
testcase_14 AC 4,189 ms
58,708 KB
testcase_15 AC 4,187 ms
58,476 KB
testcase_16 AC 4,190 ms
58,744 KB
testcase_17 AC 4,189 ms
59,164 KB
testcase_18 AC 4,189 ms
59,044 KB
testcase_19 AC 4,187 ms
59,220 KB
testcase_20 AC 4,125 ms
55,960 KB
testcase_21 WA -
testcase_22 AC 4,124 ms
55,740 KB
testcase_23 AC 4,125 ms
56,076 KB
testcase_24 AC 4,124 ms
56,028 KB
testcase_25 AC 4,122 ms
55,592 KB
testcase_26 AC 4,126 ms
55,768 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 4,123 ms
55,760 KB
testcase_30 AC 4,183 ms
58,688 KB
testcase_31 AC 4,189 ms
58,764 KB
testcase_32 AC 4,187 ms
59,004 KB
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentSkipListSet;

public class Main {
	static int ㅤㅤ;
	public static void main(String[] args) {
		//StringBuilder sb = new StringBuilder();
		BufferedInputStream bs = new BufferedInputStream(System.in);
		Scanner ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ = new Scanner(bs);

		ㅤㅤ = ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ.nextInt();
		long[][] ㅤㅤㅤㅤㅤㅤㅤ = new long[ㅤㅤ][2];
		
		for (int ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ =0; ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ < ㅤㅤ; ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ++) {
			ㅤㅤㅤㅤㅤㅤㅤ[ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ][0] = ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ.nextLong();
			ㅤㅤㅤㅤㅤㅤㅤ[ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ][1] = ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ.nextLong();

		}
		long ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ = 0;
		long ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ = 0;
		long ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ = Long.MAX_VALUE;
		long ㅤ = System.nanoTime();
		while( System.nanoTime() - ㅤ < 4000000000L) {
			ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ++;
			//long ns[] = new long[N];
			long ㅤㅤㅤㅤㅤㅤㅤㅤㅤ = 0;
			long ㅤㅤㅤㅤㅤ = Long.MAX_VALUE;
			for (int ㅤㅤㅤㅤㅤㅤ=0; ㅤㅤㅤㅤㅤㅤ < ㅤㅤ; ㅤㅤㅤㅤㅤㅤ++) {
				long ㅤㅤㅤ = ㅤㅤㅤㅤㅤㅤㅤ[ㅤㅤㅤㅤㅤㅤ][0] + ㅤㅤㅤㅤㅤㅤㅤ[ㅤㅤㅤㅤㅤㅤ][1] * ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ;
				ㅤㅤㅤㅤㅤㅤㅤㅤㅤ = Math.max(ㅤㅤㅤㅤㅤㅤㅤㅤㅤ, ㅤㅤㅤ);
				ㅤㅤㅤㅤㅤ = Math.min(ㅤㅤㅤㅤㅤ, ㅤㅤㅤ);
			}
			long ㅤㅤㅤㅤㅤㅤ = ㅤㅤㅤㅤㅤㅤㅤㅤㅤ - ㅤㅤㅤㅤㅤ;
			if (ㅤㅤㅤㅤㅤㅤ < ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ) {
				ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ = ㅤㅤㅤㅤㅤㅤ;
				ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ = ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ;
			}

		}
		System.out.println(ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ);

	}
}
0