結果

問題 No.513 宝探し2
ユーザー phsplsphspls
提出日時 2020-04-05 11:14:21
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 426 bytes
コンパイル時間 1,489 ms
コンパイル使用メモリ 163,900 KB
実行使用メモリ 24,360 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 02:33:51
合計ジャッジ時間 2,386 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,676 KB
testcase_01 AC 22 ms
23,844 KB
testcase_02 AC 21 ms
24,360 KB
testcase_03 AC 20 ms
23,808 KB
testcase_04 AC 20 ms
23,652 KB
testcase_05 AC 21 ms
23,412 KB
testcase_06 AC 20 ms
23,508 KB
testcase_07 AC 20 ms
23,556 KB
testcase_08 AC 19 ms
24,276 KB
testcase_09 AC 20 ms
23,424 KB
testcase_10 AC 20 ms
23,388 KB
testcase_11 AC 19 ms
24,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define llong long long

int main(){
    cout << 0 << " " << 0 << endl;
    int d1;
    cin >> d1;
    if(d1 == 0) return 0;

    cout << 0 << " " << 100000 << endl;
    int d2;
    cin >> d2;
    if(d2 == 0) return 0;

    int x = (d1 + d2 - 100000) / 2;
    int y = d1 - x;
    cout << x << " " << y << endl;

    return 0;
}
0