結果

問題 No.514 宝探し3
ユーザー mamekinmamekin
提出日時 2017-05-05 22:37:49
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 716 bytes
コンパイル時間 821 ms
コンパイル使用メモリ 99,844 KB
実行使用メモリ 24,372 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:20:26
合計ジャッジ時間 1,983 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,496 KB
testcase_01 AC 22 ms
23,436 KB
testcase_02 AC 22 ms
23,628 KB
testcase_03 AC 22 ms
24,372 KB
testcase_04 AC 22 ms
23,436 KB
testcase_05 AC 22 ms
23,328 KB
testcase_06 AC 24 ms
24,024 KB
testcase_07 AC 23 ms
23,796 KB
testcase_08 AC 22 ms
23,424 KB
testcase_09 AC 23 ms
23,856 KB
testcase_10 AC 22 ms
23,376 KB
testcase_11 AC 23 ms
24,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
#include <iterator>
using namespace std;

const int MAX = 1000000000;

int main()
{
    int d1, d2;
    cout << 0 << ' ' << 0 << endl;
    cin >> d1;
    cout << MAX << ' ' << 0 << endl;
    cin >> d2;

    int x = (MAX + d1 - d2) / 2;
    int y = d1 - x;
    cout << x << ' ' << y << endl;

    return 0;
}
0