結果

問題 No.513 宝探し2
ユーザー startcpp
提出日時 2017-05-06 19:31:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 54,740 KB
実行使用メモリ 25,296 KB
平均クエリ数 2.75
最終ジャッジ日時 2024-07-17 01:09:14
合計ジャッジ時間 1,505 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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