結果

問題 No.513 宝探し2
ユーザー ldsybldsyb
提出日時 2017-05-05 23:15:41
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 63,008 KB
実行使用メモリ 24,360 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-24 01:07:09
合計ジャッジ時間 1,806 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,652 KB
testcase_01 AC 25 ms
23,520 KB
testcase_02 AC 25 ms
23,592 KB
testcase_03 AC 25 ms
23,520 KB
testcase_04 AC 25 ms
23,628 KB
testcase_05 AC 24 ms
23,520 KB
testcase_06 AC 24 ms
23,976 KB
testcase_07 AC 25 ms
23,532 KB
testcase_08 AC 25 ms
24,360 KB
testcase_09 AC 25 ms
24,000 KB
testcase_10 AC 26 ms
23,628 KB
testcase_11 AC 25 ms
23,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
	cout << 0 << ' ' << 0 << endl;
	int a;
	cin >> a;
	if(a == 0) return 0;
	cout << a << ' ' << 0 << endl;
	int b;
	cin >> b;
	if(b == 0) return 0;
	cout << a - b / 2 << ' ' << b / 2 << endl;
}
0