結果

問題 No.471 直列回転機
ユーザー しらっ亭しらっ亭
提出日時 2016-12-21 02:07:32
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,616 bytes
コンパイル時間 2,605 ms
コンパイル使用メモリ 171,232 KB
実行使用メモリ 24,564 KB
平均クエリ数 19587.39
最終ジャッジ日時 2023-09-23 12:07:05
合計ジャッジ時間 20,579 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,712 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 26 ms
24,108 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 279 ms
23,760 KB
testcase_13 AC 284 ms
23,892 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 26 ms
24,084 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 74 ms
23,748 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 142 ms
23,532 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 221 ms
24,408 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 135 ms
23,556 KB
testcase_52 AC 28 ms
23,304 KB
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 82 ms
24,264 KB
testcase_57 AC 65 ms
23,280 KB
testcase_58 AC 44 ms
23,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#define _p(...) (void)printf(__VA_ARGS__)
#define forr(x,arr) for(auto&& x:arr)
#define _overload3(_1,_2,_3,name,...) name
#define _rep2(i,n) _rep3(i,0,n)
#define _rep3(i,a,b) for(int i=int(a);i<int(b);++i)
#define rep(...) _overload3(__VA_ARGS__,_rep3,_rep2,)(__VA_ARGS__)
#define _rrep2(i,n) _rrep3(i,0,n)
#define _rrep3(i,a,b) for(int i=int(b)-1;i>=int(a);i--)
#define rrep(...) _overload3(__VA_ARGS__,_rrep3,_rrep2,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()
#define bit(n) (1LL<<(n))
#define sz(x) ((int)(x).size())
#define fst first
#define snd second
using ll=long long;using pii=pair<int,int>;
using vb=vector<bool>;using vs=vector<string>;
using vi=vector<int>;using vvi=vector<vi>;using vvvi=vector<vvi>;
using vl=vector<ll>;using vvl=vector<vl>;using vvvl=vector<vvl>;
using vd=vector<double>;using vvd=vector<vd>;using vvvd=vector<vvd>;
using vpii=vector<pii>;using vvpii=vector<vpii>;using vvvpii=vector<vvpii>;
template<class T,class U>ostream&operator<<(ostream&o,const pair<T,U>&p){o<<'('<<p.fst<<", "<<p.snd<<')';return o;}

void Main() {
  int m;
  vpii P;
  scanf("%d", &m);
  rep(i, m) {
    int x, y;
    scanf("%d%d", &x, &y);
    P.emplace_back(x, y);
  }

  _p("? 0 0\n");
  fflush(stdout);
  ll qx, qy;
  scanf("%lld%lld", &qx, &qy);

  vector<pair<ll, ll>> ans;

  forr(p, P) {
    ll x = p.fst;
    ll y = p.snd;

    ll nx = qx - x;
    ll ny = qy - y;

    ans.emplace_back(nx, ny);
  }

  _p("!\n");
  forr(p, ans) _p("%lld %lld\n", p.fst, p.snd);
}
int main() { cin.tie(nullptr); ios::sync_with_stdio(false); Main(); return 0; }
0