結果

問題 No.514 宝探し3
ユーザー furafura
提出日時 2020-05-04 20:23:31
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 1,845 ms
コンパイル使用メモリ 197,008 KB
実行使用メモリ 24,372 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 03:26:04
合計ジャッジ時間 3,110 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,360 KB
testcase_01 AC 25 ms
23,412 KB
testcase_02 AC 25 ms
24,024 KB
testcase_03 AC 25 ms
23,412 KB
testcase_04 AC 24 ms
23,640 KB
testcase_05 AC 25 ms
23,652 KB
testcase_06 AC 25 ms
24,372 KB
testcase_07 AC 24 ms
23,376 KB
testcase_08 AC 25 ms
23,580 KB
testcase_09 AC 25 ms
23,532 KB
testcase_10 AC 26 ms
23,688 KB
testcase_11 AC 25 ms
23,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;
using lint=long long;

lint ask(lint x,lint y){
	printf("%lld %lld\n",x,y);
	fflush(stdout);
	lint res; scanf("%lld",&res);
	if(res==0) exit(0);
	return res;
}

int main(){
	lint a=ask(0,0);
	lint b=ask(1e9,0);
	ask((a-b+1e9)/2,(a+b-1e9)/2);
	return 0;
}
0