結果

問題 No.514 宝探し3
コンテスト
ユーザー fine
提出日時 2017-05-05 23:14:37
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 176 ms / 2,000 ms
+ 999µs
コード長 476 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,036 ms
コンパイル使用メモリ 185,632 KB
実行使用メモリ 9,772 KB
平均クエリ数 3.54
最終ジャッジ日時 2026-10-31 09:17:42
合計ジャッジ時間 2,724 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

using namespace std;

const int LIM = 1000000000;

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