题解 | #统计每个月兔子的总数#
统计每个月兔子的总数
http://www.nowcoder.com/practice/1221ec77125d4370833fd3ad5ba72395
let line;
while(line=readline()){
console.log(getnum(line))
}
function getnum(num){
if(num<3){
return 1
}else{
return getnum(num-1)+getnum(num-2)
}
}