
算法入门经典第二版第十章数学概念与方法
MrFox_
1.少说话, 多做事。
2.现在就是将来, 本来现实, 何必幻想!
展开
-
UVA - 11582 Colossal Fibonacci Numbers!
//数学题就是很考验思维的灵活性。。有收获,长见识。 #include #include #include #include #include using namespace std; const int maxn = 1000 + 5; vector v[maxn]; unsigned long long a, n, mod; void init() { for(int i = 2;原创 2015-08-11 09:26:54 · 353 阅读 · 0 评论 -
UVA 1213 Sum of Different Primes
#include #include #include #include using namespace std; const int maxn = 1120 + 5; bool prime[maxn]; vector res; void init(){ memset(prime,0,sizeof(prime)); for(int i = 2; i f原创 2015-10-08 18:48:29 · 473 阅读 · 0 评论