結果

問題 No.172 UFOを捕まえろ
ユーザー simansiman
提出日時 2015-03-29 22:48:54
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 11,492 KB
実行使用メモリ 15,416 KB
最終ジャッジ日時 2023-09-17 00:18:57
合計ジャッジ時間 4,106 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,284 KB
testcase_01 AC 80 ms
15,316 KB
testcase_02 AC 80 ms
15,288 KB
testcase_03 AC 80 ms
15,156 KB
testcase_04 WA -
testcase_05 AC 81 ms
15,044 KB
testcase_06 AC 81 ms
15,144 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 79 ms
15,356 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 80 ms
15,084 KB
testcase_20 WA -
testcase_21 AC 80 ms
15,284 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

class Yukicoder
  def initialize
    x, y, r = gets.chomp.split(' ').map(&:to_i)

    d = Math.sqrt(x * x + y * y) + r

    puts (2 * d / Math.sqrt(2)).ceil
  end
end

Yukicoder.new
0