結果

問題 No.514 宝探し3
コンテスト
ユーザー kurenai3110
提出日時 2017-05-05 22:42:28
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 66 ms / 2,000 ms
+ 999µs
コード長 360 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 377 ms
コンパイル使用メモリ 81,820 KB
実行使用メモリ 9,736 KB
平均クエリ数 2.92
最終ジャッジ日時 2026-10-31 09:16:13
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge7_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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