結果

問題 No.514 宝探し3
ユーザー sugim48sugim48
提出日時 2017-05-05 22:37:19
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 999 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 100,992 KB
実行使用メモリ 24,492 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:20:03
合計ジャッジ時間 2,004 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
24,492 KB
testcase_01 AC 25 ms
23,436 KB
testcase_02 AC 24 ms
24,156 KB
testcase_03 AC 24 ms
23,712 KB
testcase_04 AC 24 ms
23,748 KB
testcase_05 AC 24 ms
24,156 KB
testcase_06 AC 25 ms
24,396 KB
testcase_07 AC 24 ms
24,360 KB
testcase_08 AC 24 ms
24,372 KB
testcase_09 AC 24 ms
23,940 KB
testcase_10 AC 24 ms
23,520 KB
testcase_11 AC 23 ms
23,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
#include <random>
#include <unordered_map>
using namespace std;

#define rep(i, N) for (int i = 0; i < N; i++)
#define pb push_back

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };

int const MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-12;
int INF = INT_MAX / 2;

int main() {
	cout << 0 << ' ' << 0 << endl;
	ll d1; cin >> d1;
	cout << 1000000000 << ' ' << 0 << endl;
	ll d2; cin >> d2;
	ll x = (d1 - d2 + 1000000000) / 2;
	cout << x << ' ' << d1 - x << endl;
}
0