結果

問題 No.513 宝探し2
ユーザー teketeke5000teketeke5000
提出日時 2017-08-19 19:48:09
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 1,057 ms
コンパイル使用メモリ 143,540 KB
実行使用メモリ 24,324 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:30:51
合計ジャッジ時間 2,269 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,964 KB
testcase_01 AC 22 ms
23,436 KB
testcase_02 AC 21 ms
23,904 KB
testcase_03 AC 23 ms
23,964 KB
testcase_04 AC 21 ms
23,736 KB
testcase_05 AC 21 ms
23,472 KB
testcase_06 AC 22 ms
24,012 KB
testcase_07 AC 22 ms
24,324 KB
testcase_08 AC 22 ms
24,252 KB
testcase_09 AC 22 ms
24,300 KB
testcase_10 AC 22 ms
23,400 KB
testcase_11 AC 22 ms
23,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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