結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,700 KB
testcase_01 AC 25 ms
24,084 KB
testcase_02 AC 25 ms
23,556 KB
testcase_03 AC 26 ms
24,072 KB
testcase_04 AC 25 ms
24,360 KB
testcase_05 AC 25 ms
23,700 KB
testcase_06 AC 24 ms
23,676 KB
testcase_07 AC 25 ms
23,664 KB
testcase_08 AC 25 ms
23,712 KB
testcase_09 AC 25 ms
23,688 KB
testcase_10 AC 25 ms
23,700 KB
testcase_11 AC 25 ms
24,384 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 -2000000000" << endl;
	cin >> A;
	long long B = 0;
	cout << "0 2000000000" << endl;
	cin >> B;
	Y = (A - B) / 2;
	long long C = 0;
	cout << "-2000000000 0" << endl;
	cin >> C;
	long long D = 0;
	cout << "2000000000 0" << endl;
	cin >> D;
	X = (C - D) / 2;
	cout << X << ' ' << Y << endl;
	return 0;
}
0