Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

Fibonacci

📝 Solutions 🔵 仅限 C++
Problems Description
<p> The Fibonacci Numbers{0,1,1,2,3,5,8,13,21,34,55...} are defined by the recurrence: <br /> F0=0 F1=1 Fn=Fn-1+Fn-2,n&gt;=2 <br /> Write a program to calculate the Fibonacci Numbers. </p>
Input格式
<p> Each case&nbsp;contains a number n and you are expected to calculate Fn.(0&lt;=n&lt;=30) 。 </p>
Output格式
<p> For each case, print a number Fn on a separate line,which means the nth Fibonacci Number. </p>
Sample
Sample Input 1
1
Sample Output 1
1
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token