結果
| 問題 | 
                            No.513 宝探し2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             dnish
                         | 
                    
| 提出日時 | 2018-06-19 00:03:02 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 26 ms / 2,000 ms | 
| コード長 | 520 bytes | 
| コンパイル時間 | 1,625 ms | 
| コンパイル使用メモリ | 165,844 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 3.00 | 
| 最終ジャッジ日時 | 2024-07-17 01:46:22 | 
| 合計ジャッジ時間 | 2,938 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
ソースコード
#include "bits/stdc++.h"
#define REP(i,n,N) for(int i=(n); i<(N); i++)
#define RREP(i,n,N) for(int i=(N-1); i>=n; i--)
#define CK(n,a,b) ((a)<=(n)&&(n)<(b))
#define ALL(v) (v).begin(),(v).end()
#define p(s) cout<<(s)<<endl
#define p2(a,b) cout<<(a)<<" "<<(b)<<endl
typedef long long ll;
using namespace std;
const int inf=1e9;
int X,Y;
int a1,a2;
int main(){
    p2(0,0);
    cin>>a1; //X + Y = a1
    p2(100000,0);
    cin>>a2;//(100000-X) + Y = a2
    Y = (a1+a2-100000)/2;
    X = a1-Y;
    p2(X,Y);
    return 0;
}
            
            
            
        
            
dnish