結果

問題 No.514 宝探し3
ユーザー startcpp
提出日時 2017-05-06 19:31:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 53,860 KB
実行使用メモリ 25,476 KB
平均クエリ数 2.75
最終ジャッジ日時 2024-07-16 13:36:41
合計ジャッジ時間 1,462 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int d, D;
	
	cout << "0 0" << endl;
	cin >> d;
	if (!d) return 0;
	
	cout << "0 " << d << endl;
	cin >> D;
	if (!D) return 0;
	
	cout << D / 2 << " " << d - D / 2 << endl;
	return 0;
}
0