結果

問題 No.513 宝探し2
ユーザー 🍮かんプリン
提出日時 2019-03-21 11:16:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 61,848 KB
実行使用メモリ 25,220 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-17 02:08:25
合計ジャッジ時間 1,473 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
#include <string>
#include <stack>
using ll = long long;
#define MOD 1000000007
using namespace std;

int main(){
    int x,y,d1,d2;
    cout << "0 0" << endl;
    cin >> d1;
    cout << "100000 0" << endl;
    cin >> d2;
    x = (d1 - d2 + 100000) / 2;
    y = d1 - x;
    cout << x << " " << y << endl;
}
0