2009 源代码
探索2009年电子技术精华,涵盖从基础到前沿的238个精选资源。这里汇聚了该年度最具代表性的电路设计、嵌入式系统开发及电源管理方案等内容,适用于消费电子、工业控制等多个领域。无论是初学者还是资深工程师,都能在这里找到宝贵的学习资料和技术灵感,助力您的项目创新与个人成长。立即访问,…
#include #include using namespace std; const int MAXV=2005; const int MAXE=10005; int set[MAXV]; int rank[MAXV]; typedef st…
/*自己的模板!*/ #include #include using namespace std; const int MAX=105; int set[MAX]; int rank[MAX]; typedef struct Edge { …
#include #include using namespace std; const int MAXV=1005; const int MAXE=501000; int set[MAXV]; int rank[MAXV]; int num; …
#include #include #include using namespace std; const int MAXV=505; const int MAXE=127275; int set[MAXV]; int rank[MAXV]; …
#include #include #include using namespace std; const int MAXE=6005; const int MAX=105; int set[MAX]; int rank[MAX]; typed…
/* 题目:n头牛进行m场比赛,问能确定排名的有多少头牛。 解答:构造一个n个点的有向图,如果牛a胜b,那么a->b,如果a->b,b->c,则有a->c,这个用floyd。 最后得到该图的传递闭包link的二维数组。最后统计每一个点入度和出度和为n…
#include const int MAXV=10005; const int MAXE=30005; typedef struct Edge { int st; int ed; int distance; }Edge; Edge e…
/* 题意 :两个forger 一个froger 要蹦到另外一个froger处 他们的最短距离是这样定义的 : The frog distance (humans also call it minimax distance) between two st…
#include const int MAXV=1005; const int MAXE=4010; const int INF=0x6fffffff; typedef struct Edge { int st; int ed; int …