結果

問題 No.513 宝探し2
コンテスト
ユーザー kurenai3110
提出日時 2017-05-05 22:40:35
言語 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  
実行時間 74 ms / 2,000 ms
+ 999µs
コード長 356 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 380 ms
コンパイル使用メモリ 81,444 KB
実行使用メモリ 9,708 KB
平均クエリ数 2.93
最終ジャッジ日時 2026-11-02 03:02:32
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

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, 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