結果

問題 No.514 宝探し3
ユーザー YukiDarumaYukiDaruma
提出日時 2017-05-05 22:46:45
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 1,416 ms
コンパイル使用メモリ 163,928 KB
実行使用メモリ 24,372 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:24:55
合計ジャッジ時間 2,656 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main( int argc, char *argv[] )
{
int X;
int Y;
int A;
int B;
const int iMax = 1000000000;
	
	cout << "0 0" << endl;
	cin >> A;

	cout << "0 1000000000" << endl;
	cin >> B;

	X = ( A + B - iMax ) / 2;
	Y = A - X;
	cout << X << " " << Y << endl;

	return 0;
}






0