08 2021 档案

摘要:#include<iostream> #include<cstdio> using namespace std; void buildTree(int array[],int arrayTree[],int node,int start,int end){ if(start==end) arrayT 阅读全文
posted @ 2021-08-26 15:35 seonwee 阅读(83) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; void makePrefixTable(string pattern,int prefix[],int size){ //我们都是生活在阴沟里的人,但仍有人仰望星空。 //永远相信美好的事情明天即将发生。 prefix 阅读全文
posted @ 2021-08-26 11:43 seonwee 阅读(109) 评论(0) 推荐(0)
摘要:typedef struct item{ int to; int next; int w; }Item; Item E[MAXN]; void addEdge(int u,int v,int w){ E[cnt].to = v; E[cnt].w = w; E[cnt].next = head[u] 阅读全文
posted @ 2021-08-21 22:44 seonwee 阅读(55) 评论(0) 推荐(0)
摘要:落谷p1226 理论依据 #include<iostream> #include<cstdio> using namespace std; long long fun(long long a,long long b,long long c){ long long An = 1; long long 阅读全文
posted @ 2021-08-21 22:41 seonwee 阅读(71) 评论(0) 推荐(0)
摘要:落谷题目p1993 #include<iostream> #include<cstdio> using namespace std; typedef struct item { /* data */ int u; int v; int w; }Item; Item a[5000+5]; int n, 阅读全文
posted @ 2021-08-20 12:13 seonwee 阅读(61) 评论(0) 推荐(0)