結果

問題 No.513 宝探し2
ユーザー 🍮かんプリン🍮かんプリン
提出日時 2019-03-21 11:16:00
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 62,096 KB
実行使用メモリ 24,384 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 02:08:00
合計ジャッジ時間 1,893 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,556 KB
testcase_01 AC 24 ms
23,544 KB
testcase_02 AC 24 ms
23,688 KB
testcase_03 AC 24 ms
23,844 KB
testcase_04 AC 24 ms
24,048 KB
testcase_05 AC 25 ms
24,048 KB
testcase_06 AC 25 ms
23,556 KB
testcase_07 AC 24 ms
24,384 KB
testcase_08 AC 24 ms
24,312 KB
testcase_09 AC 24 ms
24,048 KB
testcase_10 AC 25 ms
24,048 KB
testcase_11 AC 25 ms
23,652 KB
権限があれば一括ダウンロードができます

ソースコード

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