結果

問題 No.513 宝探し2
ユーザー horoyoisawahoroyoisawa
提出日時 2022-02-02 06:29:18
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 1,519 ms
コンパイル使用メモリ 163,472 KB
実行使用メモリ 24,348 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-02 02:40:33
合計ジャッジ時間 4,078 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int d1, d2;
    const int lim = 100000;
    cout << 0 << ' ' << 0 << endl;
    cin >> d1;
    cout << 0 << ' ' << lim << endl;
    cin >> d2;
    int x = (d1 - d2 + lim) / 2;
    int y = (d1 + d2 - lim) / 2;

    cout << x << ' ' << y << endl;

    return 0;
}
0