結果

問題 No.513 宝探し2
ユーザー square1001square1001
提出日時 2017-05-05 22:33:06
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 765 ms
コンパイル使用メモリ 80,352 KB
実行使用メモリ 24,336 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:02:28
合計ジャッジ時間 2,032 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,388 KB
testcase_01 AC 24 ms
23,796 KB
testcase_02 AC 24 ms
23,628 KB
testcase_03 AC 24 ms
23,364 KB
testcase_04 AC 25 ms
24,276 KB
testcase_05 AC 24 ms
24,000 KB
testcase_06 AC 24 ms
24,324 KB
testcase_07 AC 24 ms
24,336 KB
testcase_08 AC 25 ms
23,580 KB
testcase_09 AC 24 ms
23,364 KB
testcase_10 AC 25 ms
24,036 KB
testcase_11 AC 25 ms
23,352 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