結果

問題 No.514 宝探し3
ユーザー 🍮かんプリン🍮かんプリン
提出日時 2020-06-04 17:42:19
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 525 bytes
コンパイル時間 1,876 ms
コンパイル使用メモリ 143,988 KB
実行使用メモリ 24,384 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 03:38:42
合計ジャッジ時間 2,464 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,388 KB
testcase_01 AC 25 ms
23,364 KB
testcase_02 AC 25 ms
23,544 KB
testcase_03 AC 23 ms
24,384 KB
testcase_04 AC 25 ms
24,048 KB
testcase_05 AC 24 ms
24,360 KB
testcase_06 AC 23 ms
24,024 KB
testcase_07 AC 25 ms
24,384 KB
testcase_08 AC 25 ms
23,652 KB
testcase_09 AC 24 ms
23,640 KB
testcase_10 AC 25 ms
24,048 KB
testcase_11 AC 25 ms
23,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2020.06.04 17:42:15
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;

int main() {
    cout << 0 << " " << 0 << endl;
    cout << flush;
    ll s;cin >> s;
    if (s == 0) {
        return 0;
    }
    cout << 1000000000 << " " << 0 << endl;
    cout << flush;
    ll t; cin >> t;
    if (t == 0) {
        return 0;
    }
    cout << (s + 1000000000 - t) / 2 << " " << (s - 1000000000 + t) / 2 << endl;
    cout << flush;
    return 0;
}
0