結果

問題 No.514 宝探し3
ユーザー hiro71687khiro71687k
提出日時 2023-08-29 21:39:26
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 645 bytes
コンパイル時間 4,311 ms
コンパイル使用メモリ 260,296 KB
実行使用メモリ 24,324 KB
平均クエリ数 3.50
最終ジャッジ日時 2023-08-29 21:39:32
合計ジャッジ時間 6,051 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,324 KB
testcase_01 AC 24 ms
24,036 KB
testcase_02 AC 24 ms
24,252 KB
testcase_03 AC 24 ms
23,352 KB
testcase_04 AC 25 ms
24,300 KB
testcase_05 AC 25 ms
23,988 KB
testcase_06 AC 25 ms
24,024 KB
testcase_07 AC 25 ms
23,640 KB
testcase_08 AC 23 ms
23,952 KB
testcase_09 AC 25 ms
24,036 KB
testcase_10 AC 25 ms
23,640 KB
testcase_11 AC 24 ms
24,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll=long long;
using ld=long double;
ld pie=3.141592653589793;
ll mod=1000000007;
ll inf=10099999999999990;
int main(){
    cout << "0 0" << endl;
    ll a;
    cin >> a;
    if (a==0)
    {
        return 0;
    }
    cout << "1000000000 0" << endl;
    ll b;
    cin >> b;
    if (b==0)
    {
        return 0;
    }
    ll c=a-b;
    ll x=500000000+c/2;
    cout << "0 1000000000" << endl;
    cin >> b;
    if (b==0)
    {
        return 0;
    }
    c=a-b;
    ll y=500000000+c/2;
    cout << x << ' ' << y << endl;
    ll z;
    cin >> z;
}
0