結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
tak
|
| 提出日時 | 2019-02-10 17:17:12 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 342 ms / 5,000 ms |
| コード長 | 173 bytes |
| コンパイル時間 | 14,634 ms |
| コンパイル使用メモリ | 187,676 KB |
| 実行使用メモリ | 34,872 KB |
| 最終ジャッジ日時 | 2024-07-06 13:38:14 |
| 合計ジャッジ時間 | 24,109 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (308 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/
ソースコード
let biscuit n =
let rec f target n acc =
if n >= target then acc
else f target (n*2) (acc+1)
f n 1 0
let n = stdin.ReadLine() |> int
biscuit n
|> printfn "%i"
tak