結果

問題 No.513 宝探し2
ユーザー nukachanukacha
提出日時 2017-05-05 23:19:09
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 63,092 KB
実行使用メモリ 24,360 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:07:28
合計ジャッジ時間 1,463 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,604 KB
testcase_01 AC 20 ms
23,376 KB
testcase_02 AC 19 ms
24,072 KB
testcase_03 AC 20 ms
23,364 KB
testcase_04 AC 21 ms
23,628 KB
testcase_05 AC 19 ms
23,412 KB
testcase_06 AC 19 ms
24,360 KB
testcase_07 AC 19 ms
24,240 KB
testcase_08 AC 19 ms
23,400 KB
testcase_09 AC 19 ms
23,796 KB
testcase_10 AC 19 ms
23,400 KB
testcase_11 AC 20 ms
23,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(){
    int d1, d2;
    d1 = d2 = 0;
    std::cout << 0 << " " << 0 << std::endl;
    std::cin>> d1;  // x + y
    std::cout << d1 << " " << 0 << std::endl;
    std::cin>> d2;  // y + y (= |x - (x + y)| + y)
    d2 = d2 / 2;
    std::cout << d1 - d2 << " " << d2 << std::endl;
    std::cin >> d1;
    return 0;
}
0