基础算法
文章平均质量分 68
@小草@
乐观, 要乐观~~
展开
-
一个人的旅行
E - 一个人的旅行 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多原创 2015-04-25 08:24:24 · 394 阅读 · 0 评论 -
最短路
C - 最短路Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u SubmitStatusDescription在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他原创 2015-04-25 08:22:47 · 302 阅读 · 0 评论 -
Djkstra
A - 畅通工程续Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u SubmitStatusDescription某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另原创 2015-04-25 08:20:12 · 499 阅读 · 0 评论 -
Kruskal 最小生成树
#include #include using namespace std;const int DMAX = 110;const int EMAX = 1020;int dis[EMAX], father[DMAX], middle[EMAX], fr[EMAX], to[EMAX];int val;int c, s, q;int cmp (int i, int j){原创 2015-04-25 08:11:59 · 246 阅读 · 0 评论 -
SARS病毒传染 并查集
DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best原创 2015-04-25 08:05:14 · 504 阅读 · 0 评论 -
一篇复试题
一位考北京工业研究生的学长的一道复试题 这个。。有点水呀 题目内容大概就是成绩的录入、查询、筛选以及简单的统计,最后将结果放入txt文本中。#include <stdio.h>#include <math.h>#include <string.h>#include <iostream>#include <fstream>using namespace std;const int N =原创 2017-03-07 12:33:12 · 405 阅读 · 1 评论