結果

問題 No.51 やる気の問題
ユーザー regeregeregerege
提出日時 2016-01-13 06:15:57
言語 F#
(F# 4.0)
結果
AC  
実行時間 484 ms / 5,000 ms
コード長 291 bytes
コンパイル時間 7,090 ms
コンパイル使用メモリ 186,884 KB
実行使用メモリ 64,744 KB
最終ジャッジ日時 2023-10-19 22:57:40
合計ジャッジ時間 17,928 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 369 ms
37,340 KB
testcase_01 AC 368 ms
37,348 KB
testcase_02 AC 362 ms
37,056 KB
testcase_03 AC 372 ms
38,500 KB
testcase_04 AC 369 ms
37,688 KB
testcase_05 AC 434 ms
58,364 KB
testcase_06 AC 415 ms
51,468 KB
testcase_07 AC 415 ms
50,964 KB
testcase_08 AC 393 ms
45,176 KB
testcase_09 AC 482 ms
64,492 KB
testcase_10 AC 400 ms
46,556 KB
testcase_11 AC 396 ms
45,320 KB
testcase_12 AC 420 ms
52,736 KB
testcase_13 AC 421 ms
53,472 KB
testcase_14 AC 410 ms
49,428 KB
testcase_15 AC 465 ms
64,688 KB
testcase_16 AC 392 ms
43,752 KB
testcase_17 AC 376 ms
39,296 KB
testcase_18 AC 470 ms
64,740 KB
testcase_19 AC 477 ms
64,740 KB
testcase_20 AC 416 ms
51,856 KB
testcase_21 AC 379 ms
39,272 KB
testcase_22 AC 484 ms
64,744 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (229 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 = stdin.ReadLine() |> int |> bigint
    let D = stdin.ReadLine() |> int |> bigint
    seq [ D..(-1I)..1I ]
    |> Seq.take (int D - 1)
    |> Seq.fold (fun s n -> s - (s/(n*n))) W
    |> int
    |> printfn "%d"
``No.51 やる気の問題`` ()
0