結果

問題 No.471 直列回転機
ユーザー ciel
提出日時 2016-12-24 22:40:01
言語 Ruby
(3.4.1)
結果
RE  
実行時間 -
コード長 250 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 29,648 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-07-16 11:56:33
合計ジャッジ時間 22,414 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 58
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

STDOUT.sync=true
m=gets.to_i.times{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