上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
  2015年3月7日
摘要: #include#include#includeusing namespace std;struct node{ int address; int data; int next; bool tag;}Node[100066];bool cmp(node a,node b){ if(a.ta... 阅读全文
posted @ 2015-03-07 17:04 Evence 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct Student{ int GE,GI,sum,rank,ID; int prefer[6];}STU[40066];struct School{ int want; //各学校招... 阅读全文
posted @ 2015-03-07 16:37 Evence 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct Student{ int ID; int score[6]; int perfect; int sum; int rank; bool tag;}S[10066];int p[6]; ... 阅读全文
posted @ 2015-03-07 15:49 Evence 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int arr[2111]; fill(arr,arr+2111,0); int n=0,tmp; while(scanf("%d",&tmp)!=EOF) //存储系数... 阅读全文
posted @ 2015-03-07 14:51 Evence 阅读(934) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;const int MAX=1010;bool tag[MAX]; //标记BFS是是否被访问过struct node{ int ID; //编号 int layer; ... 阅读全文
posted @ 2015-03-07 03:37 Evence 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;const int MAX=50;int n,cnt=0; //n个节点,cnt在后序输出的时候控制空格数量用int PRE[MAX],IN[MAX]; //先序,中序int preI,inI; ... 阅读全文
posted @ 2015-03-07 02:10 Evence 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int POST[32]; //存放后序遍历int IN[32]; //存放中序遍历int n; //节点数struct node{ int data; node* ... 阅读全文
posted @ 2015-03-07 00:43 Evence 阅读(153) 评论(0) 推荐(0) 编辑
  2015年3月6日
摘要: #include#include#includeusing namespace std;stack str; int putin[1010]; //暂存查询的序列int main(){ int m,n,k; //栈容量m,栈序列1-n,查询k次 scanf("%d%... 阅读全文
posted @ 2015-03-06 21:09 Evence 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;set str[51]; //最大51个集合 void compare(int s1,int s2){ int different=str[s1].size(),same=0; //初始化并集元素为s1元素个数... 阅读全文
posted @ 2015-03-06 18:59 Evence 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #include#includechar n[1010]; //暂存输入的大整数字符串int num[1010]; //暂存可以运算的各位数字int cnt=0; //记录数字个数int chu; //除数int main(){ scanf("%s %d",n,&c... 阅读全文
posted @ 2015-03-06 17:06 Evence 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页