結果

問題 No.419 直角三角形
ユーザー cympfh
提出日時 2016-09-24 16:41:38
言語 Ruby
(3.4.1)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 61 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-12-26 17:40:35
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `:' after local variable or literal is interpreted as binary operator
Main.rb:1: warning: even though it seems like symbol literal
Syntax OK

ソースコード

diff #

a,b=gets.split.map &:to_i;p (a==b ?2*a*a :(a*a-b*b).abs)**0.5
0