結果

問題 No.513 宝探し2
コンテスト
ユーザー square1001
提出日時 2017-05-05 22:33:06
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 384 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 486 ms
コンパイル使用メモリ 98,480 KB
実行使用メモリ 28,964 KB
平均クエリ数 3.00
最終ジャッジ日時 2026-03-31 15:35:35
合計ジャッジ時間 1,495 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <cmath>
#include <string>
#include <vector>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <functional>
#pragma warning(disable : 4996)
using namespace std;
int a, b;
int main() {
	cout << "0 0" << endl;
	cin >> a;
	cout << "1000000000 0" << endl;
	cin >> b; b -= 1000000000;
	int x = (a - b) / 2, y = a - x;
	cout << x << ' ' << y << endl;
	return 0;
}
0