結果

問題 No.514 宝探し3
ユーザー WA_TLEWA_TLE
提出日時 2017-05-05 22:28:43
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 568 bytes
コンパイル時間 1,591 ms
コンパイル使用メモリ 63,208 KB
実行使用メモリ 24,420 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-09-23 13:16:54
合計ジャッジ時間 2,291 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
24,384 KB
testcase_01 AC 24 ms
23,460 KB
testcase_02 AC 25 ms
24,060 KB
testcase_03 AC 25 ms
23,928 KB
testcase_04 AC 24 ms
23,460 KB
testcase_05 AC 25 ms
23,424 KB
testcase_06 AC 25 ms
23,424 KB
testcase_07 AC 26 ms
23,868 KB
testcase_08 AC 23 ms
24,420 KB
testcase_09 AC 25 ms
23,460 KB
testcase_10 AC 25 ms
23,520 KB
testcase_11 AC 25 ms
24,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<string>
#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;
typedef long long int llint;
#define pub push_back
#define mp make_pair
#define fir first
#define sec second
const int big=((llint)1<<30);
const llint mod=1000000007;
//aabbaabb

//
int main(void){
	int a,b,c,d;
	cout<<"0 0"<<endl;fflush(stdin);cin>>a;
	cout<<"0 1000000000"<<endl;fflush(stdin);cin>>b;
	cout<<"1000000000 0"<<endl;fflush(stdin);cin>>c;
	printf("%d %d",(a-c+1000000000)/2,(a-b+1000000000)/2);fflush(stdin);
	return 0;
}
0