結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー kuuso1
提出日時 2016-08-18 19:36:10
言語 F#
(F# 4.0)
結果
AC  
実行時間 343 ms / 5,000 ms
コード長 291 bytes
コンパイル時間 6,982 ms
コンパイル使用メモリ 194,756 KB
実行使用メモリ 34,736 KB
最終ジャッジ日時 2024-11-07 19:32:15
合計ジャッジ時間 16,339 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (233 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