結果

問題 No.514 宝探し3
ユーザー btkbtk
提出日時 2017-05-05 22:51:11
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 914 bytes
コンパイル時間 1,434 ms
コンパイル使用メモリ 164,568 KB
実行使用メモリ 24,372 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:26:02
合計ジャッジ時間 2,779 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long LL;

#define CIN_ONLY if(1)
struct cww{cww(){
    CIN_ONLY{
        ios::sync_with_stdio(false);cin.tie(0);
    }
}}star;
#define fin "\n"
#define FOR(i,bg,ed) for(int i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
#define pb push_back
#define DEBUG if(0)
#define REC(ret, ...) std::function<ret (__VA_ARGS__)>
template <typename T>inline bool chmin(T &l,T r)
{bool a=l>r;if(a)l=r;return a;}
template <typename T>inline bool chmax(T &l,T r)
{bool a=l<r;if(a)l=r;return a;}
template <typename T>
istream& operator>>(istream &is,vector<T> &v){
    for(auto &it:v)is>>it;
    return is;
}

int main(){
    LL M,D;
    cout<<0<< " "<< 0<<endl;
    cin>>M;
    cout<<1000000000 << " "<<0<<endl;
    cin>>D;
    cout<<(M-D+1000000000)/2<<" "<<(M+D-1000000000)/2<<endl;
    return 0;
}
0