結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,180 KB
testcase_01 AC 21 ms
24,012 KB
testcase_02 AC 22 ms
23,676 KB
testcase_03 AC 21 ms
23,664 KB
testcase_04 AC 23 ms
23,376 KB
testcase_05 AC 22 ms
23,664 KB
testcase_06 AC 23 ms
24,252 KB
testcase_07 AC 23 ms
23,616 KB
testcase_08 AC 22 ms
23,436 KB
testcase_09 AC 23 ms
23,532 KB
testcase_10 AC 22 ms
24,228 KB
testcase_11 AC 21 ms
23,400 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