会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
H.C
Talk is cheap.Show me the code.
博客园
首页
新随笔
联系
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
15
下一页
2015年5月5日
排列组合
摘要: 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
阅读(282)
评论(0)
推荐(0)
2015年4月18日
提交提示
摘要: 评测结果缩写含义WaitingWT用户程序正在排队等待测试AcceptedAC用户程序输出正确的结果Presentation ErrorPE用户程序输出有中有多余的空行,或者某行内有多余的空格。Time Limit ExceededTLE用户程序运行时间超过题目的限制Memory Limit Exc...
阅读全文
posted @ 2015-04-18 15:46 lazypark
阅读(113)
评论(0)
推荐(0)
提交提示
摘要: 评测结果缩写含义WaitingWT用户程序正在排队等待测试AcceptedAC用户程序输出正确的结果Presentation ErrorPE用户程序输出有中有多余的空行,或者某行内有多余的空格。Time Limit ExceededTLE用户程序运行时间超过题目的限制Memory Limit Exc...
阅读全文
posted @ 2015-04-18 15:46 lazypark
阅读(172)
评论(0)
推荐(0)
2015年4月9日
最短路径spfa
摘要: #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
阅读(131)
评论(0)
推荐(0)
最短路径spfa
摘要: #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
阅读(105)
评论(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
阅读(150)
评论(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
阅读(146)
评论(0)
推荐(0)
2015年4月7日
itoa()、atoi()、任意进制转换
摘要: 头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回...
阅读全文
posted @ 2015-04-07 21:34 lazypark
阅读(778)
评论(0)
推荐(0)
itoa()、atoi()、任意进制转换
摘要: 头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回...
阅读全文
posted @ 2015-04-07 21:34 lazypark
阅读(366)
评论(0)
推荐(0)
spfa最短路径
摘要: C++代码#include#include#include#includeusingnamespacestd;constintMAXN=100;constintINF=0x7FFFFFFF;structedge{intto,weight;};vectoradjmap[MAXN];//邻接表booli...
阅读全文
posted @ 2015-04-07 21:27 lazypark
阅读(121)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
15
下一页
公告