結果
問題 | No.514 宝探し3 |
ユーザー |
![]() |
提出日時 | 2017-05-05 22:37:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 999 bytes |
コンパイル時間 | 1,134 ms |
コンパイル使用メモリ | 101,444 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-16 12:56:53 |
合計ジャッジ時間 | 2,126 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#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; }