結果

問題 No.514 宝探し3
ユーザー imulanimulan
提出日時 2017-05-06 03:41:46
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 428 bytes
コンパイル時間 1,289 ms
コンパイル使用メモリ 164,696 KB
実行使用メモリ 24,396 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:56:12
合計ジャッジ時間 2,560 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,276 KB
testcase_01 AC 23 ms
23,436 KB
testcase_02 AC 23 ms
23,436 KB
testcase_03 AC 25 ms
23,856 KB
testcase_04 AC 24 ms
24,396 KB
testcase_05 AC 23 ms
24,072 KB
testcase_06 AC 23 ms
23,580 KB
testcase_07 AC 23 ms
23,436 KB
testcase_08 AC 23 ms
23,580 KB
testcase_09 AC 23 ms
23,544 KB
testcase_10 AC 23 ms
23,472 KB
testcase_11 AC 23 ms
23,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define fi first
#define se second

const ll N=1000000000;

int main()
{
    ll P,Q;

    cout << 0 << " " << 0 << endl;
    cin >>P;

    cout << N << " " << 0 << endl;
    cin >>Q;

    cout << (P-Q+N)/2 << " " << (P+Q-N)/2 << endl;
    return 0;
}
0