上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: C语言使用标志位实现#include using namespace std;#define MaxN 10char used[MaxN];int p[MaxN];char s[MaxN];//从n个元素中选r个进行排列void permute(int pos,const int n,const i... 阅读全文
posted @ 2015-05-05 16:39 lazypark 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 评测结果缩写含义WaitingWT用户程序正在排队等待测试AcceptedAC用户程序输出正确的结果Presentation ErrorPE用户程序输出有中有多余的空行,或者某行内有多余的空格。Time Limit ExceededTLE用户程序运行时间超过题目的限制Memory Limit Exc... 阅读全文
posted @ 2015-04-18 15:46 lazypark 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 评测结果缩写含义WaitingWT用户程序正在排队等待测试AcceptedAC用户程序输出正确的结果Presentation ErrorPE用户程序输出有中有多余的空行,或者某行内有多余的空格。Time Limit ExceededTLE用户程序运行时间超过题目的限制Memory Limit Exc... 阅读全文
posted @ 2015-04-18 15:46 lazypark 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; const int inf = 1dis[u]+c) { dis[v] = dis[u]+c; return 1; } return 0; } int SPFA(int src) { int i; me... 阅读全文
posted @ 2015-04-09 12:49 lazypark 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;const int inf = 1dis[u]+c) { dis[v] = dis[u]+c; return 1; } return 0;}i... 阅读全文
posted @ 2015-04-09 12:49 lazypark 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #include #include #include#includeusing namespace std;long toTen(char a[],int bit){ long i,b=1,sum=0; int length=strlen(a); for (i=length-1;i... 阅读全文
posted @ 2015-04-09 12:47 lazypark 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include #include #include#includeusing namespace std;long toTen(char a[],int bit){ long i,b=1,sum=0; int length=strlen(a); for (i=length-1;i... 阅读全文
posted @ 2015-04-09 12:47 lazypark 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回... 阅读全文
posted @ 2015-04-07 21:34 lazypark 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回... 阅读全文
posted @ 2015-04-07 21:34 lazypark 阅读(355) 评论(0) 推荐(0) 编辑
摘要: C++代码#include#include#include#includeusingnamespacestd;constintMAXN=100;constintINF=0x7FFFFFFF;structedge{intto,weight;};vectoradjmap[MAXN];//邻接表booli... 阅读全文
posted @ 2015-04-07 21:27 lazypark 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页