結果

問題 No.514 宝探し3
ユーザー edamame882edamame882
提出日時 2019-07-23 22:27:14
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 1,221 bytes
コンパイル時間 1,928 ms
コンパイル使用メモリ 163,356 KB
実行使用メモリ 24,228 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-09-23 17:56:25
合計ジャッジ時間 2,719 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,048 KB
testcase_01 AC 23 ms
24,012 KB
testcase_02 AC 24 ms
23,616 KB
testcase_03 AC 24 ms
24,216 KB
testcase_04 AC 24 ms
24,228 KB
testcase_05 AC 24 ms
24,216 KB
testcase_06 AC 24 ms
24,228 KB
testcase_07 AC 25 ms
23,412 KB
testcase_08 AC 25 ms
24,024 KB
testcase_09 AC 23 ms
23,400 KB
testcase_10 AC 24 ms
23,832 KB
testcase_11 AC 23 ms
23,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

//repetition
#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)

//container util
#define all(x) (x).begin(),(x).end()

//typedef
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VLL;
typedef vector<VLL> VVLL;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<ll, ll> PLL;

//const value
//const ll MOD = 1e9 + 7;
//const int dx[] = {0,1,0,-1};//{0,0,1,1,1,-1,-1,-1};
//const int dy[] = {1,0,-1,0};//{1,-1,0,1,-1,0,1,-1};

//conversion
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
inline ll toLL(string s) {ll v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}


int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << 0 << " " << 1000000000 << endl;
  ll d1,d2;
  cin >> d1;
  cout << 1000000000 << " " << 1000000000 << endl;
  cin >> d2;
  ll s = (d1-d2+1000000000)/2;
  cout << "0 0" << endl;
  ll d4;
  cin >> d4;
  ll t = d4 - s;
  cout << s << " " << t << endl;
  ll x;
  cin >> x;
  if(x == 0) return 0;
  else assert("error");
  return 0;
}
0