結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー ID 21712
提出日時 2025-01-24 01:49:25
言語 Standard ML
(MLton 20210117)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 6,027 ms
コンパイル使用メモリ 687,420 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-24 01:49:33
合計ジャッジ時間 4,907 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

val n = valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn);

fun solve n x c = if x < n then solve n (x*2) (c+1) else c;

print (Int.toString (solve n 1 0) ^ "\n");
0