摘要:
https://www.luogu.org/problem/show?pid=2690 题目背景 USACO 题目描述 很少有人知道奶牛爱吃苹果。农夫约翰的农场上有两棵苹果树(编号为1和2), 每一棵树上都长满了苹果。奶牛贝茜无法摘下树上的苹果,所以她只能等待苹果 从树上落下。但是,由于苹果掉到地上 阅读全文
posted @ 2017-09-12 22:25
Aptal丶
阅读(348)
评论(1)
推荐(0)
摘要:
http://www.codevs.cn/problem/1297/ 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题解 http://www.codevs.cn/problem/1297/ 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 阅读全文
posted @ 2017-09-12 19:45
Aptal丶
阅读(234)
评论(0)
推荐(0)
摘要:
https://www.luogu.org/problem/show?pid=2647 题目描述 现在你面前有n个物品,编号分别为1,2,3,……,n。你可以在这当中任意选择任意多个物品。其中第i个物品有两个属性Wi和Ri,当你选择了第i个物品后,你就可以获得Wi的收益;但是,你选择该物品以后选择的 阅读全文
posted @ 2017-09-12 19:12
Aptal丶
阅读(256)
评论(0)
推荐(0)
摘要:
T1 斐波那契数列+斐波那契公约数+n<=10^18 1 #include <cstdio> 2 3 #define LL long long 4 const LL mod(1000000007); 5 6 inline void read(LL &x) 7 { 8 x=0; register ch 阅读全文
posted @ 2017-09-12 18:11
Aptal丶
阅读(156)
评论(0)
推荐(0)
摘要:
https://www.luogu.org/problem/show?pid=1962 题目背景 大家都知道,斐波那契数列是满足如下性质的一个数列: • f(1) = 1 • f(2) = 1 • f(n) = f(n-1) + f(n-2) (n ≥ 2 且 n 为整数) 题目描述 请你求出 f( 阅读全文
posted @ 2017-09-12 16:38
Aptal丶
阅读(286)
评论(0)
推荐(0)

浙公网安备 33010602011771号