結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,520 KB
testcase_01 AC 20 ms
24,252 KB
testcase_02 AC 21 ms
24,084 KB
testcase_03 AC 19 ms
24,012 KB
testcase_04 AC 22 ms
24,348 KB
testcase_05 AC 20 ms
24,396 KB
testcase_06 AC 22 ms
23,580 KB
testcase_07 AC 20 ms
23,868 KB
testcase_08 AC 20 ms
23,652 KB
testcase_09 AC 19 ms
23,544 KB
testcase_10 AC 20 ms
23,712 KB
testcase_11 AC 22 ms
23,400 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