結果

問題 No.1178 Can you draw a Circle?
ユーザー 小野寺健小野寺健
提出日時 2021-11-02 14:37:04
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-19 23:34:51
合計ジャッジ時間 3,159 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 75 ms
12,032 KB
testcase_02 AC 80 ms
12,160 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 72 ms
12,416 KB
testcase_08 AC 74 ms
12,032 KB
testcase_09 AC 74 ms
12,160 KB
testcase_10 AC 73 ms
12,160 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - b
Syntax OK

ソースコード

diff #

a, b, c, d, e, f = gets.split(" ").map{|s| s.to_i}

m = -c / (2*a)
n = -d / (2*a)

r = Math.sqrt((f-e)/a + m**2 + n**2)

puts r
0