結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー kuuso1kuuso1
提出日時 2016-08-18 19:36:10
言語 F#
(F# 4.0)
結果
AC  
実行時間 325 ms / 5,000 ms
コード長 291 bytes
コンパイル時間 7,074 ms
コンパイル使用メモリ 188,256 KB
実行使用メモリ 34,740 KB
最終ジャッジ日時 2024-04-25 09:00:54
合計ジャッジ時間 15,933 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 312 ms
34,348 KB
testcase_01 AC 316 ms
34,604 KB
testcase_02 AC 314 ms
34,592 KB
testcase_03 AC 314 ms
34,608 KB
testcase_04 AC 320 ms
34,472 KB
testcase_05 AC 316 ms
34,608 KB
testcase_06 AC 316 ms
34,476 KB
testcase_07 AC 325 ms
34,464 KB
testcase_08 AC 311 ms
34,476 KB
testcase_09 AC 321 ms
33,792 KB
testcase_10 AC 318 ms
34,348 KB
testcase_11 AC 310 ms
34,604 KB
testcase_12 AC 323 ms
34,476 KB
testcase_13 AC 321 ms
34,596 KB
testcase_14 AC 313 ms
34,472 KB
testcase_15 AC 313 ms
34,348 KB
testcase_16 AC 316 ms
33,928 KB
testcase_17 AC 315 ms
34,740 KB
testcase_18 AC 319 ms
34,208 KB
testcase_19 AC 315 ms
34,048 KB
testcase_20 AC 317 ms
34,456 KB
testcase_21 AC 314 ms
34,476 KB
testcase_22 AC 317 ms
33,664 KB
testcase_23 AC 316 ms
34,720 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (260 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 #

open System
type Sol() =
    member this.Solve() = 
        
        let N =stdin.ReadLine() |> int
        
        let rec f n =
           match n with
           | 0 -> 0
           | _ -> 1 + f (n/2)
        
        f (N-1) |> printfn "%d"
        
let mySol = new Sol()
mySol.Solve()
0