結果
| 問題 | No.513 宝探し2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-07 23:57:43 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 1,556 ms |
| コンパイル使用メモリ | 167,384 KB |
| 実行使用メモリ | 25,476 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-17 03:24:02 |
| 合計ジャッジ時間 | 3,690 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int query(int x, int y) {
cout << x << " " << y << endl;
int d;
cin >> d;
return d;
}
int main() {
int lim = 100000;
int d1 = query(0, 0);
int d2 = query(0, 100000);
int ax = (d1 + lim - d2) / 2;
int ay = (d1 + d2 - lim) / 2;
cout << ax << " " << ay << endl;
}