- 博客(4)
- 资源 (21)
- 收藏
- 关注
原创 pku 2253 Frogger
#include #include using namespace std;#define MAX 201#define INF 10000.0ffloat matrix[MAX][MAX];int s[MAX];float dis[MAX];typedef struct point{ int x; int y; int flag;}point;
2009-02-25 20:06:00 860 1
原创 pku 1006
#include using namespace std;int main(){ int p,e,i,d, result; int n = 0; while(scanf("%d%d%d%d",&p, &e, &i, &d) && !(p == -1 && e == -1 && i == -1 && d== -1)) { result = (5544*p + 144
2009-02-25 12:47:00 853
转载 中国剩余定理
中國剩餘定理/中国剩余定理2008-05-25 15:37如要討論中國利餘定理,同餘(congruence)的概念可算是必須,但因當中可能有較複雜的混算或較高層次的數學,請讀者忍耐。 給定一個正整數n,我們說兩個數a、b是對模n同餘,如果a-b是n的倍數。用符號a≡b(mod n)來代表。一般來說,a≡b(mod n)等同於a=b+kn,而a,b,k,n都是
2009-02-25 10:01:00 681
原创 pku 1797
#include using namespace std;#define MAX 1001#define INF 1000001int matrix[MAX][MAX];int dis[MAX];int s[MAX];void MaxWeight(int& v){ int u; for(int i = 1; i <= v; ++i) { dis[i
2009-02-24 22:12:00 745
Thinking in C++ 源代码
2009-12-22
More Effective C++(中文).chm
2009-12-22
More+Effective+C++中文.pdf
2009-12-22
Effective_C++2e(中文).pdf
2009-12-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人