摘要:
#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
阅读(127)
评论(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
阅读(182)
评论(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
阅读(238)
评论(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
阅读(936)
评论(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
阅读(183)
评论(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
阅读(146)
评论(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
阅读(158)
评论(0)
推荐(0)
浙公网安备 33010602011771号