結果

問題 No.513 宝探し2
ユーザー tansunogontansunogon
提出日時 2017-05-05 22:36:19
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 518 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 63,468 KB
実行使用メモリ 24,384 KB
平均クエリ数 3.50
最終ジャッジ日時 2023-09-24 01:03:00
合計ジャッジ時間 1,738 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,532 KB
testcase_01 AC 24 ms
24,372 KB
testcase_02 AC 25 ms
24,216 KB
testcase_03 AC 24 ms
23,664 KB
testcase_04 AC 24 ms
24,036 KB
testcase_05 AC 24 ms
23,388 KB
testcase_06 AC 24 ms
23,544 KB
testcase_07 AC 23 ms
23,412 KB
testcase_08 AC 23 ms
23,424 KB
testcase_09 AC 23 ms
23,628 KB
testcase_10 AC 23 ms
24,384 KB
testcase_11 AC 24 ms
24,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

struct iostream_init_struct
{ 
	iostream_init_struct()
	{
		std::cin.tie(0);
		std::cin.sync_with_stdio(false);
	}
} iostream_init;

int main()
{
	int a00, aN0, a0N;

	cout << "0 0" << endl;
	cin >> a00;
	if (a00 == 0) return 0;

	cout << "100000 0" << endl;
	cin >> aN0;
	if (aN0 == 0) return 0;

	cout << "0 100000" << endl;
	cin >> a0N;
	if (a0N == 0) return 0;

	int N = 100000;
	int X = (a00 + a0N - N) / 2;
	int Y = (a00 + aN0 - N) / 2;
	cout << X << ' ' << Y << endl;
}
0