結果
| 問題 |
No.514 宝探し3
|
| コンテスト | |
| ユーザー |
TAISA_
|
| 提出日時 | 2018-06-22 19:11:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 2,000 ms |
| コード長 | 465 bytes |
| コンパイル時間 | 1,480 ms |
| コンパイル使用メモリ | 159,272 KB |
| 実行使用メモリ | 25,348 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-16 15:52:12 |
| 合計ジャッジ時間 | 2,409 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#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;
}
TAISA_