結果

問題 No.513 宝探し2
ユーザー hiyokko2hiyokko2
提出日時 2017-07-31 10:22:35
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 515 bytes
コンパイル時間 1,556 ms
コンパイル使用メモリ 159,328 KB
実行使用メモリ 25,220 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-17 01:21:25
合計ジャッジ時間 2,194 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
25,076 KB
testcase_01 AC 19 ms
24,580 KB
testcase_02 AC 19 ms
25,220 KB
testcase_03 AC 20 ms
25,220 KB
testcase_04 AC 20 ms
25,220 KB
testcase_05 AC 20 ms
24,836 KB
testcase_06 AC 21 ms
24,964 KB
testcase_07 AC 21 ms
24,836 KB
testcase_08 AC 20 ms
25,220 KB
testcase_09 AC 21 ms
24,836 KB
testcase_10 AC 21 ms
24,976 KB
testcase_11 AC 21 ms
24,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define MOD 1000000007
//#define int long long
using namespace std;
typedef long long ll;
const int INF = 1e9;



signed main()
{
    int d1, d2;
    cout << "0 0" << endl;
    cin >> d1;
    cout << "100000 0" << endl;
    cin >> d2;

    int ret;
    int AX = (0 + d1 + 100000 - d2) / 2;
    int AY = (0 - 100000 + d1 + d2) / 2;
    cout << AX << " " << AY << endl;
    cin >> ret;

    if (ret == 0) return 0;
}
0