結果

問題 No.113 宝探し
ユーザー regeregeregerege
提出日時 2016-06-07 02:33:52
言語 F#
(F# 4.0)
結果
AC  
実行時間 334 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 11,776 ms
コンパイル使用メモリ 185,516 KB
実行使用メモリ 34,820 KB
最終ジャッジ日時 2024-04-28 07:41:40
合計ジャッジ時間 21,778 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 328 ms
34,644 KB
testcase_01 AC 327 ms
34,820 KB
testcase_02 AC 324 ms
34,396 KB
testcase_03 AC 330 ms
34,580 KB
testcase_04 AC 326 ms
34,708 KB
testcase_05 AC 322 ms
34,324 KB
testcase_06 AC 322 ms
34,468 KB
testcase_07 AC 325 ms
34,576 KB
testcase_08 AC 308 ms
34,716 KB
testcase_09 AC 315 ms
34,644 KB
testcase_10 AC 319 ms
34,720 KB
testcase_11 AC 320 ms
34,712 KB
testcase_12 AC 313 ms
34,524 KB
testcase_13 AC 325 ms
34,592 KB
testcase_14 AC 318 ms
34,708 KB
testcase_15 AC 321 ms
34,528 KB
testcase_16 AC 326 ms
34,396 KB
testcase_17 AC 334 ms
34,392 KB
testcase_18 AC 330 ms
34,588 KB
testcase_19 AC 313 ms
34,468 KB
testcase_20 AC 329 ms
34,720 KB
testcase_21 AC 334 ms
34,596 KB
testcase_22 AC 318 ms
34,680 KB
testcase_23 AC 333 ms
34,452 KB
testcase_24 AC 321 ms
34,600 KB
testcase_25 AC 315 ms
34,664 KB
testcase_26 AC 323 ms
34,596 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (479 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let f (x,y) = function
    | 'N' -> x,y+1.
    | 'E' -> x+1.,y
    | 'W' -> x-1.,y
    | 'S' -> x,y-1.
    | _ -> failwith "error!"
let x,y =
    stdin.ReadLine()
    |> Seq.fold f (0.,0.)
let s = sqrt((x*x)+(y*y))
printfn "%2.5f" s
0