結果
| 問題 |
No.471 直列回転機
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 00:18:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 565 bytes |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 28,104 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-07-16 11:31:03 |
| 合計ジャッジ時間 | 19,792 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 58 |
ソースコード
#!/usr/bin/env python3
import sys
def ask(x, y):
print('?', x, y)
sys.stdout.flush()
fx, fy = map(int, input().split())
return fx, fy
# [ x' ] [ a b e ] [ x ]
# [ y' ] = [ c d f ] [ y ]
# [ 1 ] [ 1 ] [ 1 ]
ae, cf = ask(1, 0)
aae, ccf = ask(2, 0)
a = aae - ae
e = ae - a
c = ccf - cf
f = cf - c
be, df = ask(0, 1)
b = be - e
df = df - f
def f(x, y):
fx = a*x + b*y + e
fy = c*x + d*y + f
return fx, fy
print('!')
sys.stdout.flush()
m = int(input())
for _ in range(m):
x, y = map(int, input().split())
print(*f(x, y))