結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,628 KB
testcase_01 AC 24 ms
23,352 KB
testcase_02 AC 24 ms
23,424 KB
testcase_03 AC 23 ms
24,324 KB
testcase_04 AC 25 ms
23,424 KB
testcase_05 AC 24 ms
23,436 KB
testcase_06 AC 25 ms
23,388 KB
testcase_07 AC 26 ms
23,676 KB
testcase_08 AC 26 ms
24,012 KB
testcase_09 AC 25 ms
24,036 KB
testcase_10 AC 24 ms
24,336 KB
testcase_11 AC 24 ms
24,012 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 << "100000 0" << endl;
    ll b;
    cin >> b;
    if (b==0)
    {
        return 0;
    }
    ll c=a-b;
    ll x=50000+c/2;
    cout << "0 100000" << endl;
    cin >> b;
    if (b==0)
    {
        return 0;
    }
    c=a-b;
    ll y=50000+c/2;
    cout << x << ' ' << y << endl;
    ll z;
    cin >> z;
}
0