結果

問題 No.471 直列回転機
ユーザー maspy
提出日時 2020-03-06 17:26:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 598 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 45,912 KB
平均クエリ数 4.00
最終ジャッジ日時 2024-07-16 20:33:45
合計ジャッジ時間 26,323 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 58
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# %%
import sys
readline = sys.stdin.readline
import math

DEBUG = True
# DEBUG = False

# %%
M = int(readline())
XY = [tuple(map(int, readline().split()) for _ in range(M))]

# %%


def question(*args, offset='?'):
    if offset is None:
        print(*args, flush=True)
    else:
        print(offset, *args, flush=True)
    return readline()


# %%
a, b = map(int, question(0, 0).split())
c, d = map(int, question(1, 0).split())
e, f = map(int, question(0, 1).split())
c -= a
e -= a
d -= b
f -= b
print('!')
for x, y in XY:
    print(a + c * x + e * y, b + d * x + f * y)
0