結果
| 問題 | 
                            No.513 宝探し2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-05-05 22:36:48 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 22 ms / 2,000 ms | 
| コード長 | 712 bytes | 
| コンパイル時間 | 777 ms | 
| コンパイル使用メモリ | 99,816 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 3.00 | 
| 最終ジャッジ日時 | 2024-07-17 00:57:32 | 
| 合計ジャッジ時間 | 1,860 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
#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 = 100000;
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;
}