結果

問題 No.471 直列回転機
ユーザー tubo28tubo28
提出日時 2016-12-12 14:07:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 464 ms / 3,141 ms
コード長 263 bytes
コンパイル時間 575 ms
コンパイル使用メモリ 11,112 KB
実行使用メモリ 38,444 KB
平均クエリ数 19588.39
最終ジャッジ日時 2023-09-02 03:35:48
合計ジャッジ時間 19,329 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
30,884 KB
testcase_01 AC 101 ms
30,856 KB
testcase_02 AC 104 ms
31,300 KB
testcase_03 AC 105 ms
31,148 KB
testcase_04 AC 105 ms
31,092 KB
testcase_05 AC 108 ms
30,908 KB
testcase_06 AC 111 ms
30,988 KB
testcase_07 AC 111 ms
30,836 KB
testcase_08 AC 144 ms
31,700 KB
testcase_09 AC 149 ms
32,244 KB
testcase_10 AC 123 ms
31,540 KB
testcase_11 AC 242 ms
34,336 KB
testcase_12 AC 392 ms
37,380 KB
testcase_13 AC 378 ms
36,864 KB
testcase_14 AC 405 ms
36,984 KB
testcase_15 AC 464 ms
38,444 KB
testcase_16 AC 107 ms
31,224 KB
testcase_17 AC 103 ms
31,288 KB
testcase_18 AC 104 ms
31,424 KB
testcase_19 AC 102 ms
31,220 KB
testcase_20 AC 426 ms
38,252 KB
testcase_21 AC 179 ms
31,764 KB
testcase_22 AC 397 ms
37,320 KB
testcase_23 AC 365 ms
36,744 KB
testcase_24 AC 266 ms
33,404 KB
testcase_25 AC 169 ms
31,320 KB
testcase_26 AC 422 ms
38,092 KB
testcase_27 AC 257 ms
33,812 KB
testcase_28 AC 284 ms
34,544 KB
testcase_29 AC 303 ms
35,328 KB
testcase_30 AC 197 ms
32,192 KB
testcase_31 AC 424 ms
37,068 KB
testcase_32 AC 369 ms
36,448 KB
testcase_33 AC 303 ms
34,668 KB
testcase_34 AC 406 ms
36,528 KB
testcase_35 AC 189 ms
32,380 KB
testcase_36 AC 242 ms
34,668 KB
testcase_37 AC 138 ms
31,456 KB
testcase_38 AC 170 ms
31,568 KB
testcase_39 AC 216 ms
32,452 KB
testcase_40 AC 334 ms
36,180 KB
testcase_41 AC 425 ms
38,380 KB
testcase_42 AC 305 ms
34,712 KB
testcase_43 AC 388 ms
36,404 KB
testcase_44 AC 145 ms
30,988 KB
testcase_45 AC 293 ms
35,388 KB
testcase_46 AC 330 ms
35,080 KB
testcase_47 AC 395 ms
37,044 KB
testcase_48 AC 359 ms
36,236 KB
testcase_49 AC 340 ms
36,696 KB
testcase_50 AC 387 ms
36,756 KB
testcase_51 AC 230 ms
33,476 KB
testcase_52 AC 109 ms
30,852 KB
testcase_53 AC 112 ms
30,940 KB
testcase_54 AC 110 ms
31,384 KB
testcase_55 AC 191 ms
32,668 KB
testcase_56 AC 175 ms
31,868 KB
testcase_57 AC 154 ms
31,732 KB
testcase_58 AC 129 ms
31,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def get
  x, y = gets.split.map(&:to_i);
  Complex(x, y)
end

m = gets.to_i
ps = m.times.map { get }

puts "? 0 0"
$>.flush
org = get

puts "? 1 0"
$>.flush
r = get - org

puts "!"
ps.map { |c| c*r + org }.each { |c|
  x, y = c.rect
  puts "#{x} #{y}"
}
$>.flush
0