結果

問題 No.513 宝探し2
ユーザー YukiDarumaYukiDaruma
提出日時 2017-05-05 22:44:33
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 1,604 ms
コンパイル使用メモリ 166,480 KB
実行使用メモリ 25,476 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-17 00:58:31
合計ジャッジ時間 3,024 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
25,220 KB
testcase_01 AC 28 ms
25,220 KB
testcase_02 AC 25 ms
24,836 KB
testcase_03 AC 24 ms
24,836 KB
testcase_04 AC 24 ms
25,220 KB
testcase_05 AC 24 ms
25,476 KB
testcase_06 AC 26 ms
24,836 KB
testcase_07 AC 28 ms
24,580 KB
testcase_08 AC 26 ms
25,220 KB
testcase_09 AC 24 ms
24,580 KB
testcase_10 AC 27 ms
25,220 KB
testcase_11 AC 27 ms
24,580 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