結果
| 問題 | No.514 宝探し3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-05 23:34:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 2,000 ms |
| コード長 | 333 bytes |
| コンパイル時間 | 463 ms |
| コンパイル使用メモリ | 54,332 KB |
| 実行使用メモリ | 25,348 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-16 13:27:47 |
| 合計ジャッジ時間 | 1,429 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
using namespace std;
int dis[2], ansx = 0, ansy = 0, box = 0;
int main(){
cout << 0 << " " << 0 << endl;
cin >> dis[0];
cout << 1000000000 << " " << 0 << endl;
cin >> dis[1];
box = dis[0] + dis[1] - 1000000000;
ansy = box / 2;
ansx = dis[0] - ansy;
cout << ansx << " " << ansy << endl;
return 0;
}