結果

問題 No.513 宝探し2
ユーザー snrnsidysnrnsidy
提出日時 2021-09-25 16:43:27
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 332 bytes
コンパイル時間 1,915 ms
コンパイル使用メモリ 197,276 KB
実行使用メモリ 24,336 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-24 03:00:47
合計ジャッジ時間 3,265 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
23,736 KB
testcase_01 AC 25 ms
23,880 KB
testcase_02 AC 25 ms
23,568 KB
testcase_03 AC 24 ms
23,772 KB
testcase_04 AC 25 ms
23,460 KB
testcase_05 AC 25 ms
24,048 KB
testcase_06 AC 26 ms
23,880 KB
testcase_07 AC 25 ms
23,304 KB
testcase_08 AC 25 ms
24,336 KB
testcase_09 AC 25 ms
24,336 KB
testcase_10 AC 26 ms
23,436 KB
testcase_11 AC 26 ms
24,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a,b;
	
	cout << 0 << " " << 0 << endl;
	cin >> a;
	if(a==0) return 0;
	cout << a << " " << 0 << endl;
	cin >> b;
	if(b==0) return 0;
	int x = 2*a - b;
	x/=2;
	int y = a - x;
	cout << x << " " << y << endl;
	return 0;
}
0