結果

問題 No.1271 初めての級数
ユーザー natoriusannatoriusan
提出日時 2023-08-01 15:53:58
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 133 bytes
コンパイル時間 5,900 ms
コンパイル使用メモリ 188,864 KB
実行使用メモリ 35,272 KB
最終ジャッジ日時 2024-04-19 15:11:52
合計ジャッジ時間 11,051 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 303 ms
34,872 KB
testcase_02 AC 310 ms
35,248 KB
testcase_03 AC 308 ms
34,876 KB
testcase_04 AC 304 ms
35,136 KB
testcase_05 AC 304 ms
35,268 KB
testcase_06 AC 304 ms
35,140 KB
testcase_07 AC 304 ms
35,148 KB
testcase_08 AC 304 ms
35,144 KB
testcase_09 AC 306 ms
35,272 KB
testcase_10 AC 304 ms
34,976 KB
testcase_11 AC 308 ms
35,264 KB
testcase_12 AC 306 ms
35,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (200 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 k = stdin.ReadLine () |> int

[|
    for i in 1..k ->
        1./(float i)
|] |> Array.sum |> ((*)(1./(float k))) |> printfn "%f"
0