結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2019-03-19 09:48:04 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 10,122 ms |
コンパイル使用メモリ | 185,292 KB |
実行使用メモリ | 29,184 KB |
最終ジャッジ日時 | 2024-09-13 12:41:29 |
合計ジャッジ時間 | 10,542 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 WA * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (324 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/
ソースコード
open System let max = Console.ReadLine() |> int let rec twice n c = if (n*2) >= max then c else twice (n*2) c + 1 twice 1 1 |> Console.WriteLine