結果

問題 No.513 宝探し2
ユーザー rapurasurapurasu
提出日時 2017-05-05 23:48:28
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 508 bytes
コンパイル時間 1,175 ms
コンパイル使用メモリ 143,504 KB
実行使用メモリ 24,420 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-23 13:51:09
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 21 ms
23,352 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 23 ms
23,616 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;
    cout<<a-c<<" "<<c<<endl;
       
	return(0);
}
0