結果

問題 No.514 宝探し3
ユーザー 37zigen37zigen
提出日時 2017-05-05 23:07:15
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 847 bytes
コンパイル時間 2,466 ms
コンパイル使用メモリ 78,004 KB
実行使用メモリ 74,460 KB
平均クエリ数 4.75
最終ジャッジ日時 2023-09-23 13:32:20
合計ジャッジ時間 6,873 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 164 ms
73,108 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 140 ms
72,116 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
import java.util.concurrent.SynchronousQueue;

class Main {
	int N, M;
	int[] X, Y;

	public static void main(String[] args) {
		new Main().run();
	}

	void run() {
		Scanner sc = new Scanner(System.in);
		System.out.println(100000 + " " + 0);
		long h = sc.nextLong();
		if (h == 0)
			return;
		System.out.println(0 + " " + 0);
		long v = sc.nextLong();
		if (v == 0)
			return;
		long X = (v - h + 100000) / 2;
		System.out.println(0 + " " + 100000);
		h = sc.nextLong();
		if (h == 0)
			return;
		System.out.println(0 + " " + 0);
		v = sc.nextLong();
		if (v == 0)
			return;
		long Y = (v - h + 100000) / 2;
		System.out.println(X + " " + Y);
		int a = sc.nextInt();
		if (a == 0)
			return;
	}

	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}

}
0