結果

問題 No.514 宝探し3
ユーザー square1001square1001
提出日時 2017-05-05 22:33:19
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 80,156 KB
実行使用メモリ 24,312 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:18:35
合計ジャッジ時間 1,847 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
24,312 KB
testcase_01 AC 21 ms
23,400 KB
testcase_02 AC 23 ms
24,024 KB
testcase_03 AC 20 ms
23,616 KB
testcase_04 AC 21 ms
24,228 KB
testcase_05 AC 22 ms
23,928 KB
testcase_06 AC 22 ms
23,640 KB
testcase_07 AC 22 ms
24,240 KB
testcase_08 AC 20 ms
23,376 KB
testcase_09 AC 21 ms
24,024 KB
testcase_10 AC 21 ms
23,304 KB
testcase_11 AC 21 ms
24,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cmath>
#include <string>
#include <vector>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <functional>
#pragma warning(disable : 4996)
using namespace std;
int a, b;
int main() {
	cout << "0 0" << endl;
	cin >> a;
	cout << "1000000000 0" << endl;
	cin >> b; b -= 1000000000;
	int x = (a - b) / 2, y = a - x;
	cout << x << ' ' << y << endl;
	return 0;
}
0