- 博客(3)
- 收藏
- 关注
原创 蓝桥杯入门:Fibonacci数列
题目描述如下: 问题描述 Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。输入格式 输入包含一个整数n。 输出格式 输出一行,包含一个整数,表示Fn除以10007的余数。 说明:在本题中,答案是要求Fn除以10007的余数,因此我们只要能算出这个余数即可,而不需要先计算出Fn的准
2018-03-06 19:45:19
266
2
原创 There are so many different religions in the world today that it is difficult to keep track of them
There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your university belie
2017-11-27 01:18:44
2358
转载 vector清空
C++ vector容器 循循环使用 完成数据清空,回收空间.1程序段:1234567vector int> vecInt;for (int i=0;i{ vecIn
2017-11-24 13:38:23
1389
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人