結果

問題 No.513 宝探し2
ユーザー YukiDarumaYukiDaruma
提出日時 2017-05-05 22:44:33
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 1,682 ms
コンパイル使用メモリ 163,344 KB
実行使用メモリ 24,180 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:04:00
合計ジャッジ時間 2,822 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,484 KB
testcase_01 AC 21 ms
23,304 KB
testcase_02 AC 22 ms
23,472 KB
testcase_03 AC 21 ms
23,580 KB
testcase_04 AC 19 ms
23,364 KB
testcase_05 AC 20 ms
23,316 KB
testcase_06 AC 22 ms
23,916 KB
testcase_07 AC 20 ms
24,180 KB
testcase_08 AC 21 ms
23,688 KB
testcase_09 AC 20 ms
24,048 KB
testcase_10 AC 20 ms
23,952 KB
testcase_11 AC 20 ms
23,532 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 = 100000;
	
	cout << "0 0" << endl;
	cin >> A;

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

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

	return 0;
}




0