結果
| 問題 | No.513 宝探し2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-22 20:09:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 533 bytes |
| 記録 | |
| コンパイル時間 | 730 ms |
| コンパイル使用メモリ | 73,264 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 2.83 |
| 最終ジャッジ日時 | 2024-07-17 01:15:37 |
| 合計ジャッジ時間 | 2,079 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include<cstdio>
#include <iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<vector>
#include<functional>
#include<cmath>
#include<map>
#include<stack>
#include<set>
#include<numeric>
using namespace std;
typedef long long ll;
typedef pair<int, int> Pr;
int solve(int x, int y) {
int d;
cout << x << " " << y << endl;
cin >> d;
if (d == 0) exit(0);
return d;
}
int main()
{
int A = solve(0,0);
int B = solve(0, 1000000000);
int x = (A + B - 1000000000) / 2;
int y = A - x;
solve(x, y);
return 0;
}