結果
| 問題 |
No.514 宝探し3
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-06 03:41:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 428 bytes |
| コンパイル時間 | 1,822 ms |
| コンパイル使用メモリ | 166,616 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-16 13:34:57 |
| 合計ジャッジ時間 | 3,189 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define fi first
#define se second
const ll N=1000000000;
int main()
{
ll P,Q;
cout << 0 << " " << 0 << endl;
cin >>P;
cout << N << " " << 0 << endl;
cin >>Q;
cout << (P-Q+N)/2 << " " << (P+Q-N)/2 << endl;
return 0;
}