Created
February 24, 2013 10:36
-
-
Save bor2com/5023359 to your computer and use it in GitHub Desktop.
Timus Online Judge Samples:
1000. A + B Problems
1001. Reverse Roots
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let input = Array.map int (System.Console.ReadLine().Split()) | |
printfn "%d" (int(input.[0]) + int(input.[1])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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