結果

問題 No.419 直角三角形
ユーザー kuuso1kuuso1
提出日時 2016-09-09 22:29:32
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 8,972 ms
コンパイル使用メモリ 199,936 KB
実行使用メモリ 35,572 KB
最終ジャッジ日時 2024-04-28 02:12:35
合計ジャッジ時間 17,569 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 309 ms
35,324 KB
testcase_01 AC 313 ms
35,448 KB
testcase_02 AC 315 ms
35,416 KB
testcase_03 AC 311 ms
35,412 KB
testcase_04 AC 311 ms
35,076 KB
testcase_05 AC 325 ms
35,572 KB
testcase_06 AC 320 ms
35,192 KB
testcase_07 AC 316 ms
35,188 KB
testcase_08 WA -
testcase_09 AC 312 ms
35,184 KB
testcase_10 AC 317 ms
35,320 KB
testcase_11 AC 318 ms
35,436 KB
testcase_12 WA -
testcase_13 AC 324 ms
35,424 KB
testcase_14 AC 320 ms
35,204 KB
testcase_15 AC 314 ms
35,320 KB
testcase_16 AC 313 ms
35,188 KB
testcase_17 AC 314 ms
35,320 KB
testcase_18 AC 310 ms
35,196 KB
testcase_19 AC 318 ms
34,744 KB
testcase_20 AC 323 ms
35,068 KB
testcase_21 AC 315 ms
35,440 KB
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (712 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.fs(8,13): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '[|_; _; _|]' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

open System

let ri () = stdin.ReadLine() |> int
let ria () = stdin.ReadLine().Split() |> Array.map int

type Sol() =
    member this.Solve() = 
        let [|a;b|] = stdin.ReadLine().Split() |> Array.map double |> Array.sort
        b*b - a*a |> sqrt |> printfn "%.8f"
        
        
        ()
let mySol = new Sol()
mySol.Solve()
0