結果

問題 No.513 宝探し2
ユーザー kurenai3110kurenai3110
提出日時 2017-05-05 22:40:35
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 506 ms
コンパイル使用メモリ 60,296 KB
実行使用メモリ 24,372 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:03:22
合計ジャッジ時間 1,766 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,012 KB
testcase_01 AC 21 ms
23,400 KB
testcase_02 AC 20 ms
23,568 KB
testcase_03 AC 20 ms
23,532 KB
testcase_04 AC 20 ms
23,664 KB
testcase_05 AC 19 ms
24,264 KB
testcase_06 AC 20 ms
23,664 KB
testcase_07 AC 21 ms
24,372 KB
testcase_08 AC 20 ms
23,832 KB
testcase_09 AC 19 ms
23,628 KB
testcase_10 AC 19 ms
24,372 KB
testcase_11 AC 19 ms
24,060 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, 100000);
	d -= min(d, 100000);
	Y += d;

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

	X -= d;
	Y += d;

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

	return 0;
}
0