模拟
Hissen_
幸せ。
展开
-
UVA227 Puzzle谜题
Puzzle谜题 题目描述 A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 small squares of equal size. A unique letter of the alphabet was printed on each small square. Since there were only 24 squares within the frame, th原创 2020-05-29 15:53:11 · 355 阅读 · 1 评论 -
斐波那契数列升级版—大数相加
斐波那契数列之第n项 求Fibonacci数列的第n项f[n]. f[0]=1; f[1]=1 ; f[n]=f[n-1]+f[n-2]; 输入格式 输入一个不超过10000的正整数n。 输出格式 输出Fibonacci数列的第n项的值。 输入样例 99 输出样例 354224848179261915075 由于是最大到第9999项,显然不能用传统的整型数据类型去递归相加。 那就要定义数组...原创 2019-12-11 15:19:54 · 493 阅读 · 0 评论