結果

問題 No.514 宝探し3
ユーザー e869120e869120
提出日時 2017-05-05 22:24:19
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 461 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 68,968 KB
実行使用メモリ 24,408 KB
平均クエリ数 5.00
最終ジャッジ日時 2023-09-23 13:15:49
合計ジャッジ時間 1,754 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,448 KB
testcase_01 AC 24 ms
23,556 KB
testcase_02 AC 24 ms
23,472 KB
testcase_03 AC 23 ms
23,460 KB
testcase_04 AC 24 ms
24,288 KB
testcase_05 AC 25 ms
24,240 KB
testcase_06 AC 24 ms
24,408 KB
testcase_07 AC 24 ms
24,036 KB
testcase_08 AC 24 ms
24,240 KB
testcase_09 AC 23 ms
23,436 KB
testcase_10 AC 23 ms
23,748 KB
testcase_11 AC 24 ms
24,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
using namespace std;
long long X = 0, Y = 0;
int main() {
	long long A = 0;
	cout << "0 -1000000000" << endl;
	cin >> A;
	long long B = 0;
	cout << "0 1000000000" << endl;
	cin >> B;
	Y = (A - B) / 2;
	long long C = 0;
	cout << "-1000000000 0" << endl;
	cin >> C;
	long long D = 0;
	cout << "1000000000 0" << endl;
	cin >> D;
	X = (C - D) / 2;
	cout << X << ' ' << Y << endl;
	return 0;
}
0