結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2017-04-01 00:50:07 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 21 ms / 5,000 ms |
コード長 | 138 bytes |
コンパイル時間 | 29 ms |
コンパイル使用メモリ | 6,684 KB |
実行使用メモリ | 16,256 KB |
最終ジャッジ日時 | 2024-07-07 14:32:07 |
合計ジャッジ時間 | 1,161 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
(define n (read)) (define x (floor->exact (log n 2))) (define y (- n (expt 2 x))) (print (if (zero? y) x (+ x 1)))