結果

問題 No.471 直列回転機
ユーザー cielciel
提出日時 2016-12-24 22:42:38
言語 Ruby
(3.2.2)
結果
AC  
実行時間 1,726 ms / 3,141 ms
コード長 254 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 11,224 KB
実行使用メモリ 36,884 KB
平均クエリ数 19588.39
最終ジャッジ日時 2023-09-02 03:53:08
合計ジャッジ時間 50,543 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
30,720 KB
testcase_01 AC 129 ms
30,800 KB
testcase_02 AC 130 ms
31,256 KB
testcase_03 AC 126 ms
30,660 KB
testcase_04 AC 126 ms
31,148 KB
testcase_05 AC 158 ms
30,636 KB
testcase_06 AC 152 ms
31,136 KB
testcase_07 AC 127 ms
30,956 KB
testcase_08 AC 328 ms
31,352 KB
testcase_09 AC 354 ms
31,572 KB
testcase_10 AC 245 ms
31,208 KB
testcase_11 AC 781 ms
32,208 KB
testcase_12 AC 1,426 ms
33,980 KB
testcase_13 AC 1,514 ms
33,836 KB
testcase_14 AC 1,511 ms
36,808 KB
testcase_15 AC 1,726 ms
36,296 KB
testcase_16 AC 115 ms
31,032 KB
testcase_17 AC 98 ms
31,252 KB
testcase_18 AC 106 ms
30,940 KB
testcase_19 AC 102 ms
31,156 KB
testcase_20 AC 1,593 ms
36,400 KB
testcase_21 AC 359 ms
31,484 KB
testcase_22 AC 1,370 ms
33,864 KB
testcase_23 AC 1,484 ms
33,780 KB
testcase_24 AC 798 ms
32,452 KB
testcase_25 AC 299 ms
31,540 KB
testcase_26 AC 1,570 ms
36,728 KB
testcase_27 AC 778 ms
32,624 KB
testcase_28 AC 982 ms
32,824 KB
testcase_29 AC 1,033 ms
34,428 KB
testcase_30 AC 440 ms
31,724 KB
testcase_31 AC 1,634 ms
36,224 KB
testcase_32 AC 1,314 ms
34,356 KB
testcase_33 AC 1,064 ms
34,744 KB
testcase_34 AC 1,663 ms
36,884 KB
testcase_35 AC 437 ms
31,428 KB
testcase_36 AC 675 ms
32,244 KB
testcase_37 AC 246 ms
31,324 KB
testcase_38 AC 349 ms
31,828 KB
testcase_39 AC 532 ms
31,956 KB
testcase_40 AC 1,119 ms
34,816 KB
testcase_41 AC 1,604 ms
36,112 KB
testcase_42 AC 1,031 ms
34,956 KB
testcase_43 AC 1,460 ms
36,332 KB
testcase_44 AC 194 ms
31,304 KB
testcase_45 AC 1,035 ms
34,752 KB
testcase_46 AC 1,128 ms
34,436 KB
testcase_47 AC 1,526 ms
36,776 KB
testcase_48 AC 1,294 ms
34,488 KB
testcase_49 AC 1,383 ms
34,140 KB
testcase_50 AC 1,610 ms
36,136 KB
testcase_51 AC 638 ms
32,184 KB
testcase_52 AC 114 ms
30,740 KB
testcase_53 AC 114 ms
30,844 KB
testcase_54 AC 120 ms
30,956 KB
testcase_55 AC 413 ms
31,984 KB
testcase_56 AC 334 ms
31,656 KB
testcase_57 AC 248 ms
31,488 KB
testcase_58 AC 221 ms
30,960 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

STDOUT.sync=true
m=gets.to_i.times.map{gets.split.map(&:to_f)}
puts '? 0 0'
dx,dy=gets.split.map(&:to_f)
puts '? 1 1'
cms,cps=gets.split.map(&:to_f)
cms-=dx
cps-=dy
c=(cms+cps)/2
s=(cps-cms)/2
puts '!'
m.each{|x,y|
	puts '%f %f'%[x*c-y*s+dx,x*s+y*c+dy]
}
0