結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2019-06-25 12:02:09 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 95 bytes |
コンパイル時間 | 46 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-22 23:46:29 |
合計ジャッジ時間 | 2,673 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 21 |
コンパイルメッセージ
Main.rb:5: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument Syntax OK
ソースコード
n = gets.to_i puts func(1, n) def func (i, m) return i if 2**i >= m func(i+1, m) end