結果

問題 No.1178 Can you draw a Circle?
ユーザー 👑 obakyan
提出日時 2021-05-25 23:05:50
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 13:55:08
合計ジャッジ時間 1,237 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

local a, b, c = io.read("*n", "*n", "*n")
local d, e, f = io.read("*n", "*n", "*n")
c, d, e, f = c / a, d / a, e / a, f / a
z = math.sqrt(f - e + c * c / 4 + d * d / 4)
print(string.format("%.12f", z))
0