結果

問題 No.513 宝探し2
ユーザー horoyoisawahoroyoisawa
提出日時 2022-02-02 06:30:11
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 1,576 ms
コンパイル使用メモリ 163,608 KB
実行使用メモリ 24,108 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 03:02:05
合計ジャッジ時間 2,467 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,640 KB
testcase_01 AC 21 ms
23,544 KB
testcase_02 AC 21 ms
23,688 KB
testcase_03 AC 21 ms
24,108 KB
testcase_04 AC 20 ms
23,664 KB
testcase_05 AC 20 ms
23,388 KB
testcase_06 AC 21 ms
24,072 KB
testcase_07 AC 21 ms
23,388 KB
testcase_08 AC 20 ms
23,640 KB
testcase_09 AC 22 ms
23,832 KB
testcase_10 AC 21 ms
23,424 KB
testcase_11 AC 20 ms
23,904 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 << lim << ' ' << 0 << endl;
    cin >> d2;
    int x = (d1 - d2 + lim) / 2;
    int y = (d1 + d2 - lim) / 2;

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

    return 0;
}
0