結果
問題 | No.903 太郎の確率 |
ユーザー | guricerin |
提出日時 | 2019-12-18 16:47:20 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 91 ms / 2,000 ms |
コード長 | 528 bytes |
コンパイル時間 | 4,720 ms |
コンパイル使用メモリ | 163,908 KB |
実行使用メモリ | 26,872 KB |
最終ジャッジ日時 | 2023-09-20 19:27:38 |
合計ジャッジ時間 | 6,182 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 89 ms
24,912 KB |
testcase_01 | AC | 89 ms
26,872 KB |
testcase_02 | AC | 88 ms
26,860 KB |
testcase_03 | AC | 91 ms
24,752 KB |
testcase_04 | AC | 87 ms
24,740 KB |
testcase_05 | AC | 87 ms
22,724 KB |
testcase_06 | AC | 89 ms
24,784 KB |
testcase_07 | AC | 88 ms
24,836 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
open System open System.Collections.Generic [<AutoOpen>] module Cin = let read f = stdin.ReadLine() |> f let reada f = stdin.ReadLine().Split() |> Array.map f let readInts() = read string |> Seq.toArray |> Array.map (fun x -> Convert.ToInt32(x.ToString())) module Util = let strRev s = s |> Seq.rev |> Seq.map string |> String.concat "" [<EntryPoint>] let main _ = let a = read float printfn "%f" (1.0 / a) 0 // return an integer exit code