結果

問題 No.514 宝探し3
ユーザー startcppstartcpp
提出日時 2017-05-06 19:31:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 3,431 ms
コンパイル使用メモリ 51,160 KB
実行使用メモリ 24,492 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-23 13:58:00
合計ジャッジ時間 2,071 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,844 KB
testcase_01 AC 25 ms
23,688 KB
testcase_02 AC 25 ms
23,844 KB
testcase_03 AC 24 ms
23,856 KB
testcase_04 AC 25 ms
24,492 KB
testcase_05 AC 24 ms
24,072 KB
testcase_06 AC 25 ms
24,084 KB
testcase_07 AC 26 ms
24,036 KB
testcase_08 AC 25 ms
24,384 KB
testcase_09 AC 25 ms
23,988 KB
testcase_10 AC 26 ms
24,252 KB
testcase_11 AC 25 ms
23,700 KB
権限があれば一括ダウンロードができます

ソースコード

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