結果
| 問題 |
No.514 宝探し3
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-05 23:14:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| コンパイル時間 | 1,631 ms |
| コンパイル使用メモリ | 166,604 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 3.75 |
| 最終ジャッジ日時 | 2024-07-16 13:23:28 |
| 合計ジャッジ時間 | 4,554 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
const int LIM = 100;
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;
}