Skip to content

Instantly share code, notes, and snippets.

@bor2com
Created February 24, 2013 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bor2com/5023359 to your computer and use it in GitHub Desktop.
Save bor2com/5023359 to your computer and use it in GitHub Desktop.
Timus Online Judge Samples: 1000. A + B Problems 1001. Reverse Roots
let input = Array.map int (System.Console.ReadLine().Split())
printfn "%d" (int(input.[0]) + int(input.[1]))
let delim = [|' ';'\t';'\n';'\r'|]
let input = System.Console.In.ReadToEnd().Split(delim, StringSplitOptions.RemoveEmptyEntries)
let roots = Array.map double input |> Array.rev |> Array.map sqrt
Array.iter (printfn "%f") roots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment