結果

問題 No.513 宝探し2
ユーザー paruparu
提出日時 2017-05-05 23:01:10
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 51,312 KB
実行使用メモリ 24,288 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:06:02
合計ジャッジ時間 1,483 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,304 KB
testcase_01 AC 21 ms
24,288 KB
testcase_02 AC 19 ms
23,592 KB
testcase_03 AC 21 ms
23,832 KB
testcase_04 AC 20 ms
23,940 KB
testcase_05 AC 19 ms
23,544 KB
testcase_06 AC 20 ms
24,048 KB
testcase_07 AC 20 ms
23,676 KB
testcase_08 AC 20 ms
23,340 KB
testcase_09 AC 20 ms
24,240 KB
testcase_10 AC 19 ms
23,556 KB
testcase_11 AC 20 ms
24,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main () {
    cout << 0 << ' ' << 0 << endl;
    int d;
    cin >> d;
    if (d <= 100000) {
        cout << 0 << ' ' << d << endl;
        int D;
        cin >> D;
        cout << D / 2 << ' ' << d - D / 2 << endl;
    }
    else {
        cout << d - 100000 << ' ' << 100000 << endl;
        int D;
        cin >> D;
        cout << d - 100000 + D / 2 << ' ' << 100000 - D / 2 << endl;
    }
    return 0;
}
0