結果

問題 No.514 宝探し3
ユーザー kurenai3110kurenai3110
提出日時 2017-05-05 22:42:28
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 643 ms
コンパイル使用メモリ 61,268 KB
実行使用メモリ 24,360 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:22:20
合計ジャッジ時間 1,927 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,496 KB
testcase_01 AC 22 ms
24,348 KB
testcase_02 AC 22 ms
24,048 KB
testcase_03 AC 23 ms
23,640 KB
testcase_04 AC 23 ms
24,360 KB
testcase_05 AC 23 ms
24,072 KB
testcase_06 AC 23 ms
23,652 KB
testcase_07 AC 22 ms
24,060 KB
testcase_08 AC 22 ms
23,676 KB
testcase_09 AC 23 ms
24,012 KB
testcase_10 AC 24 ms
23,628 KB
testcase_11 AC 23 ms
23,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;

int main()
{
	int X = 0, Y = 0;
	int d;

	cout << X << " " << Y << endl;
	cin >> d;

	X += min(d, (int)1e9);
	d -= min(d, (int)1e9);
	Y += d;

	cout << X << " " << Y << endl;
	cin >> d;
	d /= 2;

	X -= d;
	Y += d;

	cout << X << " " << Y << endl;

	return 0;
}
0