結果

問題 No.51 やる気の問題
ユーザー regeregeregerege
提出日時 2016-01-13 06:13:28
言語 F#
(F# 4.0)
結果
RE  
実行時間 -
コード長 252 bytes
コンパイル時間 7,500 ms
コンパイル使用メモリ 195,312 KB
実行使用メモリ 43,356 KB
最終ジャッジ日時 2023-10-19 22:57:21
合計ジャッジ時間 17,756 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 359 ms
36,276 KB
testcase_01 AC 359 ms
36,276 KB
testcase_02 AC 358 ms
36,304 KB
testcase_03 AC 357 ms
35,940 KB
testcase_04 AC 359 ms
35,852 KB
testcase_05 RE -
testcase_06 AC 364 ms
37,672 KB
testcase_07 AC 365 ms
37,624 KB
testcase_08 AC 360 ms
37,160 KB
testcase_09 RE -
testcase_10 AC 363 ms
37,144 KB
testcase_11 AC 360 ms
37,016 KB
testcase_12 AC 362 ms
37,800 KB
testcase_13 AC 366 ms
37,872 KB
testcase_14 AC 361 ms
37,464 KB
testcase_15 RE -
testcase_16 AC 362 ms
36,848 KB
testcase_17 AC 355 ms
36,268 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 367 ms
37,712 KB
testcase_21 AC 359 ms
36,112 KB
testcase_22 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (257 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let ``No.51 やる気の問題`` () =
    let W = int <| stdin.ReadLine()
    let D = int <| stdin.ReadLine()
    seq [ D..(-1)..1 ]
    |> Seq.take (D-1)
    |> Seq.fold (fun s n -> s - (s/(n*n))) W
    |> printfn "%d"
``No.51 やる気の問題`` ()
0