結果

問題 No.419 直角三角形
ユーザー nobigomu
提出日時 2018-06-11 12:17:01
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 143 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 13:30:34
合計ジャッジ時間 872 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

print((function (a, b)
	return a==b and math.sqrt(2)*a or math.sqrt(a>b and a^2-b^2 or b^2-a^2)
end)(io.stdin:read("*n"), io.stdin:read("*n")))
0