結果
問題 |
No.471 直列回転機
|
ユーザー |
![]() |
提出日時 | 2016-12-29 18:04:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 726 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 38,608 KB |
平均クエリ数 | 19588.39 |
最終ジャッジ日時 | 2024-07-16 12:07:46 |
合計ジャッジ時間 | 23,176 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 6 WA * 52 |
ソースコード
#!/usr/bin/env python3 import collections Point = collections.namedtuple("Point", "x y") def printf(*args, **kwargs): kwargs["flush"] = True print(*args, **kwargs) def ask(p): printf("? {} {}".format(p.x, p.y)) return Point(*(int(z) for z in input().split())) def answer(ps): printf("!") printf(*("{} {}".format(p.x, p.y) for p in ps), sep="\n") def main(): m = int(input()) ps = [Point(*(int(z) for z in input().split())) for _ in range(m)] x_1, _ = ask(Point(0, 0)) x_2, y_2 = ask(Point(0, 1)) c = -x_1 + y_2 s = x_1 - x_2 d = x_1 qs = (Point(c * p.x - s * p.y + d, s * p.x + c * p.y + d) for p in ps) answer(qs) if __name__ == '__main__': main()