
图论
文章平均质量分 87
volzkzg
这个作者很懒,什么都没留下…
展开
-
sgu103
狗题,其实就是很简单的最短路问题的扩展,一开始不明就理的TLE,MLE,WA,蛋碎了一地,后来发现题目说没有路径就输出0,突然醒悟了! /* *Name:Traffic Lights *LANG:C++ *source:sgu103 */ #include #include #include #define MAXN 350 #define MAXM 15000 #define I原创 2012-04-02 22:49:53 · 547 阅读 · 0 评论 -
spoj_15_SHPATH
题目数据范围比较高,用map记录城市,再用dijkstra+heap既可以了AC了 /* *NAME:SHPATH *LANG:C++ *Source:spoj15 */ #include #include #include #include #include #include #include #include #define INF 0x7FFFFFFF using原创 2012-04-06 11:11:53 · 619 阅读 · 0 评论 -
sgu122
122. The book time limit per test: 0.5 sec. memory limit per test: 4096 KB There is a group of N (2<=N<=1000) people which are numbered 1 through N, and everyone of them has not less than [ (N原创 2012-04-26 15:42:30 · 2099 阅读 · 0 评论