<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
function t(n) {
if (n <= 4) {
return 1;
}
return t(n - 1) + t(n - 5)
}
let n = prompt("月份")
console.log(t(n))
</script>
</body>
</html>
不死兔子问题
最新推荐文章于 2024-07-27 13:31:57 发布