結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー MiyamonYMiyamonY
提出日時 2019-09-06 14:21:08
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 11,904 KB
最終ジャッジ日時 2023-09-06 02:39:31
合計ジャッジ時間 2,006 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,888 KB
testcase_01 AC 16 ms
11,868 KB
testcase_02 AC 16 ms
11,860 KB
testcase_03 AC 16 ms
11,732 KB
testcase_04 AC 16 ms
11,648 KB
testcase_05 WA -
testcase_06 AC 16 ms
11,860 KB
testcase_07 AC 16 ms
11,896 KB
testcase_08 AC 16 ms
11,888 KB
testcase_09 AC 16 ms
11,732 KB
testcase_10 AC 17 ms
11,856 KB
testcase_11 AC 15 ms
11,756 KB
testcase_12 AC 16 ms
11,672 KB
testcase_13 AC 16 ms
11,880 KB
testcase_14 AC 17 ms
11,756 KB
testcase_15 AC 18 ms
11,872 KB
testcase_16 AC 17 ms
11,904 KB
testcase_17 AC 17 ms
11,876 KB
testcase_18 AC 18 ms
11,660 KB
testcase_19 AC 17 ms
11,676 KB
testcase_20 AC 17 ms
11,680 KB
testcase_21 AC 18 ms
11,676 KB
testcase_22 AC 17 ms
11,720 KB
testcase_23 AC 17 ms
11,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let* ((n (string->number (read-line))))

  (print (+ 1 (let loop ((i 0)
			 (m 1))
		(if (<= n (* 2 m))
		    i
		    (loop (+ i 1) (* 2 m)))))))
0