結果

問題 No.471 直列回転機
ユーザー maspymaspy
提出日時 2020-03-06 17:31:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,588 ms / 3,141 ms
コード長 579 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 10,836 KB
実行使用メモリ 30,888 KB
平均クエリ数 19589.39
最終ジャッジ日時 2023-09-02 04:03:18
合計ジャッジ時間 41,551 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,796 KB
testcase_01 AC 40 ms
23,640 KB
testcase_02 AC 39 ms
23,748 KB
testcase_03 AC 39 ms
23,636 KB
testcase_04 AC 39 ms
23,724 KB
testcase_05 AC 53 ms
23,364 KB
testcase_06 AC 45 ms
24,024 KB
testcase_07 AC 51 ms
23,656 KB
testcase_08 AC 220 ms
24,480 KB
testcase_09 AC 227 ms
24,924 KB
testcase_10 AC 130 ms
23,936 KB
testcase_11 AC 622 ms
26,200 KB
testcase_12 AC 1,267 ms
29,060 KB
testcase_13 AC 1,288 ms
29,960 KB
testcase_14 AC 1,380 ms
30,016 KB
testcase_15 AC 1,588 ms
30,888 KB
testcase_16 AC 47 ms
23,644 KB
testcase_17 AC 38 ms
23,892 KB
testcase_18 AC 39 ms
24,024 KB
testcase_19 AC 39 ms
23,856 KB
testcase_20 AC 1,523 ms
30,784 KB
testcase_21 AC 286 ms
25,116 KB
testcase_22 AC 1,300 ms
29,376 KB
testcase_23 AC 1,263 ms
29,168 KB
testcase_24 AC 716 ms
26,872 KB
testcase_25 AC 225 ms
24,476 KB
testcase_26 AC 1,493 ms
30,204 KB
testcase_27 AC 685 ms
26,900 KB
testcase_28 AC 855 ms
27,412 KB
testcase_29 AC 941 ms
28,160 KB
testcase_30 AC 368 ms
25,424 KB
testcase_31 AC 1,502 ms
30,236 KB
testcase_32 AC 1,223 ms
29,344 KB
testcase_33 AC 957 ms
28,592 KB
testcase_34 AC 1,443 ms
30,148 KB
testcase_35 AC 306 ms
25,364 KB
testcase_36 AC 587 ms
26,604 KB
testcase_37 AC 169 ms
24,800 KB
testcase_38 AC 267 ms
25,372 KB
testcase_39 AC 461 ms
26,060 KB
testcase_40 AC 1,035 ms
27,972 KB
testcase_41 AC 1,511 ms
30,380 KB
testcase_42 AC 952 ms
28,152 KB
testcase_43 AC 1,393 ms
30,148 KB
testcase_44 AC 134 ms
24,212 KB
testcase_45 AC 909 ms
28,212 KB
testcase_46 AC 1,049 ms
28,488 KB
testcase_47 AC 1,406 ms
30,260 KB
testcase_48 AC 1,206 ms
29,092 KB
testcase_49 AC 1,173 ms
29,104 KB
testcase_50 AC 1,370 ms
29,788 KB
testcase_51 AC 540 ms
26,272 KB
testcase_52 AC 52 ms
24,252 KB
testcase_53 AC 52 ms
23,604 KB
testcase_54 AC 58 ms
23,516 KB
testcase_55 AC 341 ms
25,312 KB
testcase_56 AC 263 ms
24,852 KB
testcase_57 AC 175 ms
24,292 KB
testcase_58 AC 130 ms
24,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

# %%
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('!', flush=True)
for x, y in XY:
    print(a + c * x + e * y, b + d * x + f * y, flush=True)
0