結果

問題 No.51 やる気の問題
ユーザー chike_pluschike_plus
提出日時 2019-03-27 20:20:34
言語 F#
(F# 4.0)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 5,911 ms
コンパイル使用メモリ 186,484 KB
実行使用メモリ 35,328 KB
最終ジャッジ日時 2024-04-19 13:46:28
合計ジャッジ時間 9,253 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
29,172 KB
testcase_01 AC 45 ms
28,800 KB
testcase_02 AC 46 ms
29,024 KB
testcase_03 AC 46 ms
28,912 KB
testcase_04 AC 45 ms
28,800 KB
testcase_05 RE -
testcase_06 AC 48 ms
29,312 KB
testcase_07 AC 47 ms
29,440 KB
testcase_08 AC 45 ms
29,312 KB
testcase_09 RE -
testcase_10 AC 48 ms
29,280 KB
testcase_11 AC 45 ms
29,564 KB
testcase_12 AC 45 ms
29,312 KB
testcase_13 AC 48 ms
29,548 KB
testcase_14 AC 46 ms
29,184 KB
testcase_15 RE -
testcase_16 AC 47 ms
29,184 KB
testcase_17 AC 45 ms
28,672 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 47 ms
29,280 KB
testcase_21 AC 46 ms
29,024 KB
testcase_22 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (211 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 ``No.51 やる気の問題``() =

  let w = stdin.ReadLine() |> int
  let d = stdin.ReadLine() |> int

  let rec loop w n =
    match n with
    | 1 ->(w / n)
    | _ -> w - (w / (n * n))
          |> fun arg -> loop arg (n-1)

  loop w d
  |> stdout.WriteLine

``No.51 やる気の問題``()
0