当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

7425:Coda's Fibonacci Password

题目描述

Raki, AC_Crush and Rex are members of ACM TEAM. If they want to submit problems to acmoj.gxb.sspu.edu.cn, they should submit it to Coda at first. if they try to persecution Coda in problem background, Coda will refuse it.

One day, Raki passed by Coda's laptop, he noticed that Coda's admin account password is a number in the Fibonacci sequence. If they have password, they can update problem as they want.

Now, Raki knows the $i$, Coda's password is $f[i]f[i]$, please transfer the $i$ to Coda's password!

Fibonacci sequence is defined as the following rules:

  1. $f[1]=f[2]=1$
  2. $f[n]=f[n-1]+f[n-2](n>3)$
输入解释

One line, an integer $i$

输出解释

One line, an interger, please output $f[i]$.

输入样例
10
输出样例
55
提示

$1<=i<=10$

 

命题人:19软工A1 陈万鹏


该题目包含在题集 SSPU新生赛

共提交 46

通过率 60.87%
时间上限 内存上限
1000 MS 256 MB