結果

問題 No.513 宝探し2
ユーザー rapurasurapurasu
提出日時 2017-05-05 23:51:53
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 507 bytes
コンパイル時間 976 ms
コンパイル使用メモリ 143,672 KB
実行使用メモリ 24,420 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 01:09:09
合計ジャッジ時間 2,054 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
24,264 KB
testcase_01 AC 20 ms
23,400 KB
testcase_02 AC 20 ms
23,580 KB
testcase_03 AC 20 ms
23,664 KB
testcase_04 AC 20 ms
23,604 KB
testcase_05 AC 20 ms
24,036 KB
testcase_06 AC 20 ms
23,556 KB
testcase_07 AC 19 ms
23,616 KB
testcase_08 AC 20 ms
23,448 KB
testcase_09 AC 20 ms
24,420 KB
testcase_10 AC 21 ms
23,472 KB
testcase_11 AC 22 ms
23,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
typedef long long LL;
int main(){
    cout<<0<<" "<<0<<endl; 
    LL a;
    cin>>a;
    if(a==0){
       return 0;
    }
    cout<<0<<" "<<100000<<endl;
    LL b;
    cin>>b;
    if(b==0){
       return 0;
    }
    LL c=(a+b-100000)/2;
    cout<<c<<" "<<a-c<<endl;
    return(0);
}
0