結果

問題 No.471 直列回転機
ユーザー tkc60kmphtkc60kmph
提出日時 2016-12-21 13:04:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 434 ms / 3,141 ms
コード長 418 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,828 KB
実行使用メモリ 28,192 KB
平均クエリ数 19589.39
最終ジャッジ日時 2023-09-02 03:46:53
合計ジャッジ時間 15,357 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
24,024 KB
testcase_01 AC 41 ms
24,252 KB
testcase_02 AC 38 ms
23,644 KB
testcase_03 AC 39 ms
23,628 KB
testcase_04 AC 40 ms
24,012 KB
testcase_05 AC 43 ms
23,868 KB
testcase_06 AC 41 ms
23,532 KB
testcase_07 AC 43 ms
23,808 KB
testcase_08 AC 84 ms
24,408 KB
testcase_09 AC 88 ms
24,556 KB
testcase_10 AC 62 ms
24,116 KB
testcase_11 AC 204 ms
25,724 KB
testcase_12 AC 358 ms
27,372 KB
testcase_13 AC 357 ms
27,616 KB
testcase_14 AC 386 ms
27,432 KB
testcase_15 AC 430 ms
28,156 KB
testcase_16 AC 42 ms
23,552 KB
testcase_17 AC 39 ms
24,348 KB
testcase_18 AC 39 ms
24,000 KB
testcase_19 AC 39 ms
24,024 KB
testcase_20 AC 393 ms
27,836 KB
testcase_21 AC 125 ms
24,744 KB
testcase_22 AC 361 ms
27,096 KB
testcase_23 AC 329 ms
27,176 KB
testcase_24 AC 235 ms
25,592 KB
testcase_25 AC 109 ms
24,752 KB
testcase_26 AC 392 ms
28,192 KB
testcase_27 AC 213 ms
25,912 KB
testcase_28 AC 240 ms
26,628 KB
testcase_29 AC 281 ms
26,564 KB
testcase_30 AC 150 ms
24,808 KB
testcase_31 AC 396 ms
27,784 KB
testcase_32 AC 359 ms
26,936 KB
testcase_33 AC 264 ms
26,356 KB
testcase_34 AC 386 ms
27,428 KB
testcase_35 AC 132 ms
24,732 KB
testcase_36 AC 192 ms
25,460 KB
testcase_37 AC 76 ms
24,348 KB
testcase_38 AC 114 ms
24,988 KB
testcase_39 AC 177 ms
25,304 KB
testcase_40 AC 305 ms
26,848 KB
testcase_41 AC 434 ms
27,632 KB
testcase_42 AC 298 ms
26,220 KB
testcase_43 AC 367 ms
27,888 KB
testcase_44 AC 83 ms
23,936 KB
testcase_45 AC 259 ms
26,012 KB
testcase_46 AC 306 ms
26,596 KB
testcase_47 AC 375 ms
27,772 KB
testcase_48 AC 330 ms
26,920 KB
testcase_49 AC 306 ms
27,404 KB
testcase_50 AC 364 ms
27,520 KB
testcase_51 AC 176 ms
25,648 KB
testcase_52 AC 43 ms
23,868 KB
testcase_53 AC 45 ms
23,472 KB
testcase_54 AC 44 ms
24,148 KB
testcase_55 AC 141 ms
24,772 KB
testcase_56 AC 123 ms
24,452 KB
testcase_57 AC 96 ms
24,528 KB
testcase_58 AC 67 ms
24,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m = int(input())
x = [0]*m
y = [0]*m
for i in range(m):
	x[i], y[i] = map(int, input().split())
a = [0]*4
b = [0]*2
print("? 0 0")
b[0], b[1] = map(int, input().split())
print("? 1 0")
a[0], a[2] = map(int, input().split())
a[0] -= b[0]
a[2] -= b[1]
print("? 0 1")
a[1], a[3] = map(int, input().split())
a[1] -= b[0]
a[3] -= b[1]
print("!")
for i in range(m):
	print(a[0]*x[i]+a[1]*y[i]+b[0], a[2]*x[i]+a[3]*y[i]+b[1])
0