結果

問題 No.98 円を描こう
ユーザー LeonardoneLeonardone
提出日時 2015-10-14 21:53:25
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 15,708 KB
最終ジャッジ日時 2023-09-28 21:03:30
合計ジャッジ時間 2,400 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,472 KB
testcase_01 AC 87 ms
15,636 KB
testcase_02 AC 85 ms
15,592 KB
testcase_03 AC 85 ms
15,236 KB
testcase_04 AC 84 ms
15,436 KB
testcase_05 AC 84 ms
15,420 KB
testcase_06 WA -
testcase_07 AC 84 ms
15,572 KB
testcase_08 AC 88 ms
15,552 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#! ruby
# yukicoder My Practice
# author: Leonardone @ NEETSDKASU

X, Y = gets.chomp.split.map(&:to_f)

L = (X * X + Y * Y) ** 0.5

if L.ceil == L.floor
	puts (2 * L.ceil).succ
else
	puts (2 * L.ceil)
end

0