結果

問題 No.514 宝探し3
ユーザー teketeke5000teketeke5000
提出日時 2017-08-19 19:53:42
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 1,112 ms
コンパイル使用メモリ 143,348 KB
実行使用メモリ 24,264 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 14:24:19
合計ジャッジ時間 2,391 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
23,616 KB
testcase_01 AC 26 ms
23,820 KB
testcase_02 AC 26 ms
23,676 KB
testcase_03 AC 25 ms
24,012 KB
testcase_04 AC 25 ms
24,264 KB
testcase_05 AC 25 ms
23,472 KB
testcase_06 AC 26 ms
23,964 KB
testcase_07 AC 26 ms
23,412 KB
testcase_08 AC 26 ms
23,568 KB
testcase_09 AC 26 ms
23,316 KB
testcase_10 AC 25 ms
24,264 KB
testcase_11 AC 26 ms
23,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ll MAX = 1e9;

int main(void) {
    ll d1, d2;
    cout << 0 << " " << 0 << endl;
    cin >> d1;
    cout << 0 << " " << MAX << endl;
    cin >> d2;
    ll AX = ( d1 + d2 - MAX ) / 2;
    ll AY = d1 - AX;
    cout << AX << " " << AY << endl;
    return 0;
}
0