結果

問題 No.471 直列回転機
ユーザー 👑 obakyanobakyan
提出日時 2019-05-05 17:47:00
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 328 ms / 3,141 ms
コード長 635 bytes
コンパイル時間 961 ms
コンパイル使用メモリ 70,068 KB
実行使用メモリ 24,240 KB
平均クエリ数 19588.39
最終ジャッジ日時 2023-09-02 03:58:52
合計ジャッジ時間 12,154 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,340 KB
testcase_01 AC 22 ms
23,964 KB
testcase_02 AC 22 ms
23,352 KB
testcase_03 AC 22 ms
23,460 KB
testcase_04 AC 24 ms
23,160 KB
testcase_05 AC 24 ms
23,508 KB
testcase_06 AC 23 ms
24,240 KB
testcase_07 AC 24 ms
24,204 KB
testcase_08 AC 39 ms
23,844 KB
testcase_09 AC 48 ms
23,832 KB
testcase_10 AC 30 ms
24,180 KB
testcase_11 AC 135 ms
23,184 KB
testcase_12 AC 256 ms
23,352 KB
testcase_13 AC 257 ms
23,988 KB
testcase_14 AC 290 ms
23,604 KB
testcase_15 AC 328 ms
24,180 KB
testcase_16 AC 24 ms
23,340 KB
testcase_17 AC 23 ms
23,868 KB
testcase_18 AC 21 ms
23,784 KB
testcase_19 AC 23 ms
23,580 KB
testcase_20 AC 297 ms
24,156 KB
testcase_21 AC 79 ms
24,216 KB
testcase_22 AC 269 ms
23,784 KB
testcase_23 AC 239 ms
23,172 KB
testcase_24 AC 163 ms
23,640 KB
testcase_25 AC 70 ms
23,988 KB
testcase_26 AC 276 ms
23,220 KB
testcase_27 AC 155 ms
23,340 KB
testcase_28 AC 167 ms
23,424 KB
testcase_29 AC 181 ms
23,340 KB
testcase_30 AC 90 ms
23,808 KB
testcase_31 AC 300 ms
23,508 KB
testcase_32 AC 256 ms
23,184 KB
testcase_33 AC 185 ms
23,436 KB
testcase_34 AC 277 ms
23,340 KB
testcase_35 AC 86 ms
24,168 KB
testcase_36 AC 133 ms
24,204 KB
testcase_37 AC 38 ms
23,856 KB
testcase_38 AC 77 ms
23,340 KB
testcase_39 AC 114 ms
23,496 KB
testcase_40 AC 201 ms
23,040 KB
testcase_41 AC 291 ms
24,228 KB
testcase_42 AC 193 ms
23,568 KB
testcase_43 AC 273 ms
23,424 KB
testcase_44 AC 53 ms
23,868 KB
testcase_45 AC 181 ms
23,784 KB
testcase_46 AC 210 ms
24,168 KB
testcase_47 AC 265 ms
23,460 KB
testcase_48 AC 224 ms
24,228 KB
testcase_49 AC 222 ms
23,508 KB
testcase_50 AC 284 ms
23,868 KB
testcase_51 AC 123 ms
23,988 KB
testcase_52 AC 23 ms
23,976 KB
testcase_53 AC 24 ms
23,340 KB
testcase_54 AC 24 ms
24,192 KB
testcase_55 AC 87 ms
24,180 KB
testcase_56 AC 78 ms
23,796 KB
testcase_57 AC 66 ms
23,976 KB
testcase_58 AC 33 ms
23,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

static int x[50000];
static int y[50000];

int main(void)
{
  int m;
  scanf("%d", &m);
  for(int i = 0; i < m; i++){
    scanf("%d %d", &x[i], &y[i]);
  }
  int a, b, c, s;
  printf("? 0 0\n"); fflush(stdout);
  scanf("%d %d", &a, &b);
  printf("? 1 0\n"); fflush(stdout);
  scanf("%d %d", &c, &s);
  c -= a;
  s -= b;
  printf("!\n");
  for(int i = 0; i < m; i++){
    printf("%d %d\n", c * x[i] - s * y[i] + a, s * x[i] + c * y[i] + b);
  }
}
0