上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页
摘要: #include #include #include #include using namespace std;int main(){ int n,i,j; string s; mapm; map :: iterator it,it2; while(cin>>n... 阅读全文
posted @ 2014-08-10 18:59 2014acm 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;int main(void){ while(true) { set s; int n, doubles = 0; while(cin>>n && n) { if(n == -1) ... 阅读全文
posted @ 2014-08-10 18:56 2014acm 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #include #include#define N 10int g[N][N];int bz[N];int n,m ;void DFS(int cur){ int j; bz[cur]=1; printf("V%d",cur); for(j=1;j<=n ;j++ ) if(g[cur][j] ... 阅读全文
posted @ 2014-08-10 18:50 2014acm 阅读(196) 评论(0) 推荐(0) 编辑
摘要: // zoj 2110#include #include #include using namespace std;char map[9][9]; //迷宫地图int n,m,t; //迷宫的大小,及迷宫的门会在第t... 阅读全文
posted @ 2014-08-10 18:47 2014acm 阅读(131) 评论(0) 推荐(0) 编辑
摘要: greater 从小到大lesser 总大到小#include#includeusing namespace std;int main(){ int n,m,t,x,y; long long s; priority_queue ,greater > my; cin>>n; ... 阅读全文
posted @ 2014-08-10 18:33 2014acm 阅读(116) 评论(0) 推荐(0) 编辑
摘要: STL的队列和栈简单使用 #include #include #include #include #include #include using namespace std;int main(){ queue Q; stack S; int i; for(i=1;i M //例如 queue ... 阅读全文
posted @ 2014-08-10 18:25 2014acm 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std;struct node{ int m,n; // bool f;};node hash[200];char s[1000];int main(... 阅读全文
posted @ 2014-08-10 18:23 2014acm 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; class rect //类 声明公有 { public: int ... 阅读全文
posted @ 2014-08-10 18:20 2014acm 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include 头文件atof 将字符串 转化为 一个双精度值 int atof(a) #include #includedouble exp(){ char a[20];scanf("%s",a) ;switch(a[0]) { case'+': re... 阅读全文
posted @ 2014-08-10 18:13 2014acm 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){int n,i;char s[100];char s1[100],s2[100],s3[100];scanf("%d%*c",&n);for(i=1;i#include using name... 阅读全文
posted @ 2014-08-10 18:05 2014acm 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页