結果

問題 No.513 宝探し2
ユーザー WA_TLEWA_TLE
提出日時 2017-05-05 22:29:41
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 551 bytes
コンパイル時間 413 ms
コンパイル使用メモリ 64,560 KB
実行使用メモリ 24,288 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-09-24 01:01:52
合計ジャッジ時間 1,649 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,096 KB
testcase_01 AC 25 ms
23,520 KB
testcase_02 AC 24 ms
24,000 KB
testcase_03 AC 25 ms
23,604 KB
testcase_04 AC 23 ms
23,988 KB
testcase_05 AC 25 ms
23,736 KB
testcase_06 AC 25 ms
24,252 KB
testcase_07 AC 25 ms
23,628 KB
testcase_08 AC 24 ms
23,316 KB
testcase_09 AC 24 ms
24,288 KB
testcase_10 AC 24 ms
23,952 KB
testcase_11 AC 25 ms
23,616 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 100000"<<endl;fflush(stdin);cin>>b;
	cout<<"100000 0"<<endl;fflush(stdin);cin>>c;
	printf("%d %d",(a-c+100000)/2,(a-b+100000)/2);fflush(stdin);
	return 0;
}
0