結果

問題 No.514 宝探し3
ユーザー finefine
提出日時 2017-05-05 23:14:10
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 469 bytes
コンパイル時間 1,433 ms
コンパイル使用メモリ 162,664 KB
実行使用メモリ 24,264 KB
平均クエリ数 3.75
最終ジャッジ日時 2023-09-23 13:45:43
合計ジャッジ時間 3,881 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,060 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 23 ms
23,748 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

const int LIM = 100;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout << 0 << " " << 0 << endl;
	int d1;
	cin >> d1;
	if (d1 == 0) return 0;
	cout << 0 << " " << LIM << endl;
	int d2;
	cin >> d2;
	if (d2 == 0) return 0;
	cout << LIM << " " << 0 << endl;
	int d3;
	cin >> d3;
	if (d3 == 0) return 0;
	int ay = (d1 - d2 + LIM) / 2;
	int ax = (d1 - d3 + LIM) / 2;
	cout << ax << " " << ay << endl;
	return 0;
}
0