結果

問題 No.514 宝探し3
ユーザー TAISA_TAISA_
提出日時 2018-06-22 19:11:13
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 1,150 ms
コンパイル使用メモリ 143,444 KB
実行使用メモリ 24,360 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 16:06:00
合計ジャッジ時間 2,792 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,000 KB
testcase_01 AC 25 ms
24,000 KB
testcase_02 AC 25 ms
24,012 KB
testcase_03 AC 26 ms
23,628 KB
testcase_04 AC 25 ms
23,340 KB
testcase_05 AC 25 ms
23,508 KB
testcase_06 AC 25 ms
23,640 KB
testcase_07 AC 26 ms
24,012 KB
testcase_08 AC 25 ms
24,360 KB
testcase_09 AC 25 ms
23,388 KB
testcase_10 AC 25 ms
23,808 KB
testcase_11 AC 26 ms
24,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<int,int> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-3;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
int main(){
	cout<<0<<" "<<0<<endl;
	ll d;
	cin>>d;
	cout<<d<<" "<<0<<endl;
	ll d2;
	cin>>d2;
	cout<<(d+d-d2)/2<<" "<<(d+d-d2)/2-d+d2<<endl;
    return 0;
}
0