結果

問題 No.513 宝探し2
ユーザー imulanimulan
提出日時 2017-05-06 03:45:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 428 bytes
コンパイル時間 1,682 ms
コンパイル使用メモリ 164,344 KB
実行使用メモリ 24,228 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:10:07
合計ジャッジ時間 2,675 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,364 KB
testcase_01 AC 24 ms
23,808 KB
testcase_02 AC 23 ms
24,000 KB
testcase_03 AC 23 ms
23,796 KB
testcase_04 AC 23 ms
24,228 KB
testcase_05 AC 25 ms
23,616 KB
testcase_06 AC 24 ms
23,520 KB
testcase_07 AC 25 ms
23,388 KB
testcase_08 AC 23 ms
23,412 KB
testcase_09 AC 24 ms
23,604 KB
testcase_10 AC 24 ms
23,376 KB
testcase_11 AC 23 ms
23,844 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