結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-31 01:51:56 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 125 bytes |
| コンパイル時間 | 45 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-24 23:53:21 |
| 合計ジャッジ時間 | 2,923 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
コンパイルメッセージ
Syntax OK
ソースコード
A,B=gets.split.map(&:to_i)
if A > B
puts Math.sqrt(A*A - B*B)
else
puts Math.sqrt(B*B - A*A)
end