結果

問題 No.471 直列回転機
ユーザー 👑 obakyanobakyan
提出日時 2019-05-02 21:14:53
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 441 ms / 3,141 ms
コード長 641 bytes
コンパイル時間 749 ms
コンパイル使用メモリ 72,180 KB
実行使用メモリ 24,348 KB
平均クエリ数 19588.39
最終ジャッジ日時 2023-09-02 03:59:08
合計ジャッジ時間 15,455 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
24,036 KB
testcase_01 AC 22 ms
24,024 KB
testcase_02 AC 22 ms
23,184 KB
testcase_03 AC 21 ms
23,184 KB
testcase_04 AC 22 ms
24,348 KB
testcase_05 AC 24 ms
23,856 KB
testcase_06 AC 24 ms
23,652 KB
testcase_07 AC 24 ms
23,184 KB
testcase_08 AC 64 ms
23,652 KB
testcase_09 AC 66 ms
23,424 KB
testcase_10 AC 36 ms
24,072 KB
testcase_11 AC 176 ms
23,460 KB
testcase_12 AC 366 ms
24,288 KB
testcase_13 AC 383 ms
24,180 KB
testcase_14 AC 415 ms
24,204 KB
testcase_15 AC 394 ms
24,084 KB
testcase_16 AC 25 ms
23,832 KB
testcase_17 AC 21 ms
23,628 KB
testcase_18 AC 23 ms
24,024 KB
testcase_19 AC 23 ms
23,652 KB
testcase_20 AC 420 ms
23,220 KB
testcase_21 AC 99 ms
24,048 KB
testcase_22 AC 369 ms
23,820 KB
testcase_23 AC 367 ms
23,388 KB
testcase_24 AC 216 ms
23,376 KB
testcase_25 AC 80 ms
23,184 KB
testcase_26 AC 427 ms
23,652 KB
testcase_27 AC 208 ms
24,216 KB
testcase_28 AC 248 ms
24,348 KB
testcase_29 AC 289 ms
23,532 KB
testcase_30 AC 112 ms
23,232 KB
testcase_31 AC 423 ms
23,616 KB
testcase_32 AC 355 ms
23,508 KB
testcase_33 AC 272 ms
23,616 KB
testcase_34 AC 414 ms
24,168 KB
testcase_35 AC 109 ms
23,832 KB
testcase_36 AC 171 ms
24,180 KB
testcase_37 AC 53 ms
23,196 KB
testcase_38 AC 94 ms
23,376 KB
testcase_39 AC 146 ms
23,400 KB
testcase_40 AC 295 ms
23,232 KB
testcase_41 AC 441 ms
24,264 KB
testcase_42 AC 285 ms
23,220 KB
testcase_43 AC 399 ms
23,340 KB
testcase_44 AC 55 ms
23,388 KB
testcase_45 AC 262 ms
23,448 KB
testcase_46 AC 315 ms
23,532 KB
testcase_47 AC 392 ms
23,220 KB
testcase_48 AC 342 ms
24,072 KB
testcase_49 AC 328 ms
24,204 KB
testcase_50 AC 388 ms
24,048 KB
testcase_51 AC 161 ms
24,024 KB
testcase_52 AC 25 ms
23,172 KB
testcase_53 AC 26 ms
23,172 KB
testcase_54 AC 25 ms
23,544 KB
testcase_55 AC 111 ms
23,196 KB
testcase_56 AC 92 ms
23,388 KB
testcase_57 AC 75 ms
23,856 KB
testcase_58 AC 41 ms
23,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <iostream>
#include <iomanip>

int main(void)
{
  int m;
  std::cin >> m;
  std::vector<int> x(m);
  std::vector<int> y(m);
  for(int i = 0; i < m; i++){
    std::cin >> x[i] >> y[i];
  }
  int a, b, c, s;
  std::cout << "? 0 0" << std::endl;
  std::cin >> a >> b;
  std::cout << "? 1 0" << std::endl;
  std::cin >> c >> s;
  c -= a;
  s -= b;
  std::cout << "!" << std::endl;
  for(int i = 0; i < m; i++){
    std::cout << c * x[i] - s * y[i] + a << " " << s * x[i] + c * y[i] + b << std::endl;
  }
}
0