結果
問題 | No.180 美しいWhitespace (2) |
ユーザー |
![]() |
提出日時 | 2015-04-06 00:41:43 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,255 bytes |
コンパイル時間 | 2,180 ms |
コンパイル使用メモリ | 80,572 KB |
実行使用メモリ | 57,524 KB |
最終ジャッジ日時 | 2024-07-04 02:56:42 |
合計ジャッジ時間 | 152,717 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 24 WA * 7 |
ソースコード
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(ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ); } }