結果

問題 No.513 宝探し2
ユーザー 👑 CleyL
提出日時 2020-03-19 02:40:06
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 676 ms
コンパイル使用メモリ 64,544 KB
実行使用メモリ 25,220 KB
平均クエリ数 3.08
最終ジャッジ日時 2024-07-17 02:36:19
合計ジャッジ時間 2,162 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
	cout << "0 0" << endl;
	int n;cin>>n;
	if(!n){return 0;}
	int b=n/2;
	int a=b+n%2;
	cout << a << " " << b << endl;
	cin>>n;
	if(!n){return 0;}
	n/=2;
	cout << a-n << " " << b+n << endl;
	int t;cin>>t;
	if(t)cout << a+n << " " << b-n << endl;
}
0