結果
| 問題 | 
                            No.514 宝探し3
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-05-05 23:14:37 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 24 ms / 2,000 ms | 
| コード長 | 476 bytes | 
| コンパイル時間 | 1,821 ms | 
| コンパイル使用メモリ | 166,056 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 3.50 | 
| 最終ジャッジ日時 | 2024-07-16 13:23:23 | 
| 合計ジャッジ時間 | 2,486 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
#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;
}