摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int cmp(int a,int b) 8 { 9 return a v1;19 for(i=0;i v2;30 ... 阅读全文
posted @ 2015-02-01 08:22 小爷 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 struct MyStruct 6 { 7 int grade[6]; 8 int Done[6]; 9 int Perfect; 10 int... 阅读全文
posted @ 2015-02-01 08:14 小爷 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 3 4 L (>=60), the lower bound of the qualified grades -- 5 that is, only the ones whose grades of talent and virtue are both not below... 阅读全文
posted @ 2015-02-01 08:11 小爷 阅读(338) 评论(1) 推荐(1) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct MyStruct 8 { 9 char name[9];10 int age,worth;11 };12 13 int ... 阅读全文
posted @ 2015-02-01 08:09 小爷 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct MyStruct 8 { 9 char ID[7];10 char name[9];11 int grade;12 };13 14 ... 阅读全文
posted @ 2015-02-01 08:08 小爷 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 unit Unit6; 2 3 interface 4 5 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, bsSkinData,... 阅读全文
posted @ 2015-02-01 07:47 小爷 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1 秒 内存限制:32 兆 特殊判题: 否 提交:62 解决: 28 时间限制:1 秒 内存限制:32 兆 特殊判题: 否 提交:62 解决: 28 标签 最短路径 题目描述 给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短 阅读全文
posted @ 2015-02-01 07:45 小爷 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1 秒 内存限制:128 兆 特殊判题:否 提交:1678 解决:816 题目描述: 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们 阅读全文
posted @ 2015-02-01 07:44 小爷 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:5480解决:1757题目描述:给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短距离有多条路线,则输出花费最少的。输入:输入n,m,点的编号是1~n,然后是m行,每行4个数 a,b,... 阅读全文
posted @ 2015-02-01 07:42 小爷 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 时间限制:3 秒内存限制:100 兆特殊判题:否提交:1362解决:640题目描述:Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys com... 阅读全文
posted @ 2015-02-01 07:41 小爷 阅读(244) 评论(0) 推荐(0) 编辑