結果

問題 No.1168 Digit Sum Sequence
ユーザー natoriusannatoriusan
提出日時 2023-07-27 14:47:14
言語 F#
(F# 4.0)
結果
AC  
実行時間 326 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 6,105 ms
コンパイル使用メモリ 188,076 KB
実行使用メモリ 35,104 KB
最終ジャッジ日時 2024-04-15 02:25:29
合計ジャッジ時間 17,160 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 314 ms
34,584 KB
testcase_01 AC 316 ms
34,208 KB
testcase_02 AC 313 ms
34,840 KB
testcase_03 AC 312 ms
34,840 KB
testcase_04 AC 313 ms
34,716 KB
testcase_05 AC 316 ms
34,584 KB
testcase_06 AC 315 ms
34,584 KB
testcase_07 AC 324 ms
34,580 KB
testcase_08 AC 324 ms
34,164 KB
testcase_09 AC 326 ms
34,480 KB
testcase_10 AC 318 ms
34,688 KB
testcase_11 AC 319 ms
34,084 KB
testcase_12 AC 324 ms
34,592 KB
testcase_13 AC 314 ms
34,724 KB
testcase_14 AC 313 ms
33,824 KB
testcase_15 AC 309 ms
35,104 KB
testcase_16 AC 308 ms
34,836 KB
testcase_17 AC 306 ms
34,080 KB
testcase_18 AC 308 ms
34,592 KB
testcase_19 AC 313 ms
34,716 KB
testcase_20 AC 309 ms
34,844 KB
testcase_21 AC 310 ms
34,836 KB
testcase_22 AC 309 ms
34,716 KB
testcase_23 AC 316 ms
34,588 KB
testcase_24 AC 321 ms
34,468 KB
testcase_25 AC 315 ms
34,808 KB
testcase_26 AC 309 ms
34,468 KB
testcase_27 AC 308 ms
34,580 KB
testcase_28 AC 306 ms
34,584 KB
testcase_29 AC 316 ms
33,944 KB
testcase_30 AC 308 ms
34,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (245 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 n = stdin.ReadLine () |> int

let rec calc count x =
    if count = 0 then
        x
    else
        x |> string |> Seq.map (string >> int) |> Seq.sum |> calc (count-1)
        
        
calc 100 n |> printfn "%d"
0