結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー go_boardwalk
提出日時 2017-04-01 00:45:01
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-07-07 14:28:52
合計ジャッジ時間 1,423 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

(define n (read))
(define x (floor (log n 2)))
(define y (- n (expt 2 x)))

(print (if (zero? y)
           x
           (+ x 1)))
0