結果

問題 No.514 宝探し3
ユーザー Ymgch_KYmgch_K
提出日時 2017-05-09 17:57:20
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 1,846 bytes
コンパイル時間 1,735 ms
コンパイル使用メモリ 143,552 KB
実行使用メモリ 24,228 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:59:24
合計ジャッジ時間 2,463 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,460 KB
testcase_01 AC 22 ms
23,460 KB
testcase_02 AC 22 ms
23,448 KB
testcase_03 AC 21 ms
24,036 KB
testcase_04 AC 23 ms
23,544 KB
testcase_05 AC 20 ms
23,904 KB
testcase_06 AC 23 ms
24,228 KB
testcase_07 AC 22 ms
23,556 KB
testcase_08 AC 22 ms
23,916 KB
testcase_09 AC 22 ms
23,940 KB
testcase_10 AC 22 ms
23,544 KB
testcase_11 AC 22 ms
23,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
#define OUT(x)                cout << #x << " = " << x << endl; 
#define rep(i, n)             for (int (i) = 0; (i) < (int)(n); (i)++)
#define rer(i, l, r)          for (int (i) = (int)(l); (i) <= (int)(r); (i)++)
#define reu(i, l, r)          for (int (i) = (int)(l); (i) < (int)(r); (i)++)
#define each(i, v)            for (auto i : v)
#define all(x)                (x).begin(), (x).end()
#define rall(x)               (x).rbegin(), (x).rend()
#define pb(x)                 push_back(x)
#define bp(x)                 __builtin_popcount(x)
#define mp(x, y)              make_pair((x), (y))
#define fi                    first
#define se                    second
#define setp(x)               setprecision(x)
#define mset(m, v)            memset(m, v, sizeof(m))
static const int INF        = 0x3f3f3f3f;
static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
static const int MOD        = 1000000007;
static const double PI      = 3.14159265358979;
#define int                   long long
typedef vector<double>        vd;
typedef vector<string>        vs;
typedef vector<bool>          vb;
typedef vector<int>           vi;
typedef pair<int, int>        pii;
typedef vector<pii>           vpii;

template<typename T> void pv(T a, T b) { for (T i = a; i != b; i ++) cout << *i << " "; cout << endl; }
template<typename T, typename U> inline void amin(T &x, U y) { if (y < x) x = y; }
template<typename T, typename U> inline void amax(T &x, U y) { if (x < y) x = y; }
int in() { int _x; cin >> _x; return _x; }
      
signed main() { 
        const int n = 1000000000;
        cout << 0 << ' ' << 0 << endl;
        int d1 = in();
        cout << n << ' ' << 0 << endl;
        int d2 = in();
        cout << (d1 - d2 + n) / 2 << ' ' << (d1 + d2 - n) / 2 << endl;
        return 0;
}               

0