結果

問題 No.513 宝探し2
ユーザー 37zigen37zigen
提出日時 2017-05-05 23:01:32
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 810 bytes
コンパイル時間 2,424 ms
コンパイル使用メモリ 80,584 KB
実行使用メモリ 73,588 KB
平均クエリ数 50.25
最終ジャッジ日時 2023-09-23 13:29:46
合計ジャッジ時間 5,975 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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);
		int h = sc.nextInt();
		System.out.println(0 + " " + 0);
		int v = sc.nextInt();
		int X = (v - h + 100000) / 2;
		System.out.println(0 + " " + 100000);
		h = sc.nextInt();
		System.out.println(0 + " " + 0);
		v = sc.nextInt();
		int Y = (v - h + 100000) / 2;
		for (int i = -5; i <= 5; ++i) {
			for (int j = -5; j <= 5; ++j) {
				System.out.println((X + i) + " " + (Y + j));
				int tmp = sc.nextInt();
			}
		}
	}

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

}
0