当前位置:网站首页>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
【
边栏推荐
- Digital "new" operation and maintenance of energy industry
- C#实现定义一套中间SQL可以跨库执行的SQL语句(案例详解)
- redis分布式锁的8大坑总结梳理
- Scala基础教程--12--读写数据
- 启牛开的证券账户安全吗?
- SSL证书续费相关问题详解
- 1、 Introduction to C language
- Send and receive IBM WebSphere MQ messages
- Li Kou brush question diary /day3/2022.6.25
- Unity给自己的脚本添加类似编辑器扩展的功能案例ContextMenu的使用
猜你喜欢
1、 Introduction to C language
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
2022年字节跳动日常实习面经(抖音)
Li Kou brush question diary /day4/6.26
Scala基础教程--17--集合
Nature Microbiology | 可感染阿斯加德古菌的六种深海沉积物中的病毒基因组
神经网络物联网应用技术就业前景【欢迎补充】
正则替换【JS,正则表达式】
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
【2022年江西省研究生数学建模】水汽过饱和的核化除霾 思路分析及代码实现
随机推荐
【OpenCV入门到精通之九】OpenCV之视频截取、图片与视频互转
2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。 package main import 'fmt' func
Uni app and uviewui realize the imitation of Xiaomi mall app (with source code)
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
Basic tutorial of scala -- 16 -- generics
神经网络物联网平台搭建(物联网平台搭建实战教程)
Scala basic tutorial -- 13 -- advanced function
信息学奥赛一本通 1336:【例3-1】找树根和孩子
876. 链表的中间结点
Esp32-c3 introductory tutorial questions ⑫ - undefined reference to ROM_ temp_ to_ power, in function phy_ get_ romfunc_ addr
Scala基础教程--19--Actor
Li Kou brush question diary /day2/2022.6.24
C#实现定义一套中间SQL可以跨库执行的SQL语句(案例详解)
使用SSH
神经网络物联网应用技术就业前景【欢迎补充】
Wireshark packet capturing TLS protocol bar displays version inconsistency
[uniapp] uniapp development app online Preview PDF file
更安全、更智能、更精致,长安Lumin完虐宏光MINI EV?
自由小兵儿
ThreadLocal原理与使用