当前位置:网站首页>The 15th youth informatics competition in Shushan District in 2019
The 15th youth informatics competition in Shushan District in 2019
2022-07-04 19:20:00 【Small Turing programming】
The first question is Sum up
【 Problem description 】
Fiboracci series , Also called golden section series . Because mathematician Leonardo · Fibonacci introduced, for example, rabbit breeding , It is also called “ Rabbit Series ”, It refers to such a sequence :1、1、2、3、5、8、13、21、34、······ In Mathematics , Fibonacci sequence is defined recursively as follows :F(1)=1,F(2)=1,F(n)=F(n-1)+F(n-2)(n>=3).
The first two items of Fibonacci series are 1,1. Each subsequent item is the sum of the first two items . Now the input n, Before Fibonacci sequence n Sum of items (1<=n<=5000).
【 Input format 】sum.in
Enter only one number n, It means finding the front of Fibonacci sequence n Sum of items .
【 Output format 】sum.out
Before outputting Fibonacci series n Sum of items
【
边栏推荐
- 6.26CF模拟赛B:数组缩减题解
- ByteDance dev better technology salon was successfully held, and we joined hands with Huatai to share our experience in improving the efficiency of web research and development
- 启牛开的证券账户安全吗?
- LeetCode FizzBuzz C#解答
- Nebula Importer 数据导入实践
- DeFi生态NFT流动性挖矿系统开发搭建
- Nature microbiology | viral genomes in six deep-sea sediments that can infect Archaea asgardii
- Other InterSystems%net tools
- [发布] 一个测试 WebService 和数据库连接的工具 - DBTest v1.0
- Interpretation of SIGMOD '22 hiengine paper
猜你喜欢
自由小兵儿
[mathematical modeling of graduate students in Jiangxi Province in 2022] analysis and code implementation of haze removal by nucleation of water vapor supersaturation
My colleagues quietly told me that flying Book notification can still play like this
Scala基础教程--15--递归
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
【uniapp】uniapp开发app在线预览pdf文件
What if the self incrementing ID of online MySQL is exhausted?
Nature microbiology | viral genomes in six deep-sea sediments that can infect Archaea asgardii
Scala基础教程--17--集合
BI技巧丨权限轴
随机推荐
Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology
神经网络物联网是什么意思通俗的解释
千万不要只学 Oracle、MySQL!
启牛开的证券账户安全吗?
[2022 Jiangxi graduate mathematical modeling] curling movement idea analysis and code implementation
模板_判断素数_开方 / 六素数法
SSL证书续费相关问题详解
工厂从自动化到数字孪生,图扑能干什么?
Scala basic tutorial -- 15 -- recursion
英特尔集成光电研究最新进展推动共封装光学和光互连技术进步
从实时应用角度谈通信总线仲裁机制和网络流控
建立自己的网站(15)
Go microservice (II) - detailed introduction to protobuf
Unity编辑器扩展C#遍历文件夹以及子目录下的所有图片
Wireshark抓包TLS协议栏显示版本不一致问题
[mathematical basis of machine learning] (I) linear algebra (Part 1 +)
模板_大整数减法_无论大小关系
Uni app and uviewui realize the imitation of Xiaomi mall app (with source code)
问下各位大佬有用过cdc直接mysql to clickhouse的么
2021 合肥市信息学竞赛小学组