結果

問題 No.514 宝探し3
ユーザー teketeke5000
提出日時 2017-08-19 19:53:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 1,572 ms
コンパイル使用メモリ 159,140 KB
実行使用メモリ 25,604 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-16 14:03:46
合計ジャッジ時間 2,385 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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