青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

http://acm.pku.edu.cn/JudgeOnline/problem?id=1002
這是一個(gè)字符串處理的問題。通過這道題,我得到3點(diǎn)收獲:一、借用事先定義的map[]數(shù)組來簡化字母與數(shù)字之間的轉(zhuǎn)換;二、設(shè)置兩個(gè)數(shù)組,一個(gè)用來輸入,一個(gè)用來存儲(chǔ)轉(zhuǎn)化以后的。這樣可以方便轉(zhuǎn)化;三、如何輸出這些重復(fù)字符串和對(duì)它們進(jìn)行計(jì)數(shù)。
 1 
 2 #include<stdio.h>
 3 #include<string.h>
 4 #include<stdlib.h>
 5 
 6 int n;
 7 char a[100001][20],str[50];
 8 char map[] = "2223334445556667777888999";// 
 9 
10 int compare(const void *p,const void *q){
11     return (strcmp((char*)p,(char*)q));
12 }
13 int main()
14 {
15     while(scanf("%d",&n) != EOF){
16         for(int i = 0;i < n;++i){
17             int flag = 0;
18             scanf("%s",str);
19             int j = 0,k = 0;
20             while(k < 8){// 
21                 if(k == 3){
22                     a[i][k++= '-';
23                     continue;
24                 }
25                 if(str[j] <= 'Z' && str[j] >= 'A'){
26                     a[i][k++= map[str[j++- 'A'];
27                     continue;
28                 }
29                 else if(str[j] == '-'){
30                     j++;
31                     continue;
32                 } 
33                     a[i][k++= str[j++];
34             }
35             a[i][8= '\0';
36         }
37         qsort(a,n,20,compare);
38         int noduplicates = 1;
39         int p,q;
40         p = 0;
41         while(p < n){//
42             q = p;
43             p++;
44             while(p < n && !strcmp(a[p],a[q]))p++;
45             if(p - q > 1){
46                 printf("%s %d\n",a[q],p - q);
47                 noduplicates = 0;
48             }
49         }
50         if(noduplicates)printf("No duplicates.\n");
51     }
52             
53                 
54         
55     system("pause");
56     return 0;
57 }
58 
code
posted @ 2009-07-02 17:28 Johnnx 閱讀(387) | 評(píng)論 (0)編輯 收藏
http://acm.pku.edu.cn/JudgeOnline/problem?id=2488
這是一道深搜回溯的題目。我這個(gè)新手初次做深搜,瀏覽了無數(shù)大牛的解題報(bào)告,收獲很大。我原來總以為是要用棧來存儲(chǔ)結(jié)點(diǎn),卻沒想到回溯如此簡單。
 1 #include<stdio.h>
 2 #include<stdlib.h>
 3 int n;
 4 int r,c;
 5 int ok;
 6 int visit[100][100];
 7 int px[50],py[50];
 8 int yy[8= {-1,1,-2,2,-2,2,-1,1};//在這就把輸出字典順序確定了
 9 int xx[8= {-2,-2,-1,-1,1,1,2,2};
10 
11 int isok(int x,int y)
12 {
13     return x >= 1 && x <= r && y >= 1 && y <= c;
14 }
15 
16 void dfs(int x,int y,int length);
17 int main()
18 {
19     scanf("%d",&n);
20     for(int i =1;i <= n;i++){
21         scanf("%d%d",&c,&r);
22         visit[1][1= 1;
23         ok = 0;
24         dfs(1,1,1);
25         printf("Scenario #%d:\n",i);
26         if(ok){
27             for(int j = 1;j <= r*c;j++){
28                 printf("%c",px[j]+'A'-1);
29                 printf("%d",py[j]);
30             }
31         }
32         else printf("impossible");
33         printf("\n\n");
34     }
35     system("pause");
36     return 0;
37         
38 }
39 void dfs(int x,int y,int length)
40 {
41     px[length] = x;
42     py[length] = y;
43     if(length == r*c){
44         ok = 1;
45         return;
46     }
47     for(int i = 0;i < 8;i++){
48         int tx = x + xx[i];
49         int ty = y + yy[i];
50         if(isok(tx,ty) && !visit[tx][ty] && !ok){
51             visit[tx][ty] = 1;
52             dfs(tx,ty,length+1);
53             visit[tx][ty] = 0;//巧妙,也是必須的
54         }
55     }
56 }
57 
code
posted @ 2009-06-17 13:04 Johnnx 閱讀(1038) | 評(píng)論 (0)編輯 收藏
http://acm.pku.edu.cn/JudgeOnline/problem?id=3488
這道題是一道關(guān)于字符串轉(zhuǎn)換的問題,沒有包括復(fù)雜的算法,應(yīng)該是一道水題,可是我卻在這道題上花費(fèi)了一些時(shí)間,原因是Sample Input中的兩個(gè)輸入數(shù)據(jù)應(yīng)該是同一類數(shù)據(jù),我一開始卻認(rèn)為是兩種不同的輸入。后來才知道是同一類輸入。第二個(gè)只是第一個(gè)的特殊情況罷了。還是不熟悉,還得多練習(xí)啊。
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 char matrix[1001][1001];
 5 int n;
 6 char result[1003];
 7 int main()
 8 {
 9     while(scanf("%d",&n) != EOF){
10         for(int i = 0;i < n;i++){
11             scanf("%s",&matrix[i][0]);
12         }
13         int t = 0;
14         int len = strlen(matrix[0]);
15         for(int j = 0;j < len;j++){
16             for(int i = 0;i < n;i++)
17                 result[t++= matrix[i][j];
18         }
19         for(int i = t-1;i >= 0;i--){
20             if(result[i] == '_'){
21                 printf(" ");
22                 continue;
23             }
24             if(result[i] == '\\'){
25                 printf("\n");
26                 continue;
27             }
28             printf("%c",result[i]);
29         }
30         printf("\n\n");
31     }
32     system("pause");
33     return 0;
34 }
35 
code
posted @ 2009-06-14 22:59 Johnnx 閱讀(214) | 評(píng)論 (0)編輯 收藏
http://acm.pku.edu.cn/JudgeOnline/problem?id=3414
又是一道廣搜題,可這次卻有個(gè)不一樣的地方,除了求出最短步數(shù)外,還要輸出最短路徑出來。在原來結(jié)點(diǎn)的基礎(chǔ)上,增加pre和flag兩個(gè)變量,分別記錄父結(jié)點(diǎn)在隊(duì)列中的位置和進(jìn)行哪種操作。記錄最短路徑讓我費(fèi)了一些周折。看來這里還是不很熟悉,以后得多加練習(xí)和思考c
  1 #include<stdio.h>
  2 #include<string.h>
  3 #include<stdlib.h>
  4 int a,b,c;
  5 typedef struct node{
  6     int liter1,liter2,step,pre,flag;
  7 }Node;
  8 typedef struct queue{
  9     Node q[11000];
 10     int front,rear;
 11 }Queue;
 12 Queue Q;
 13 int path[11000],j;
 14 int visit[101][101];
 15 void bfs();
 16 int main()
 17 {
 18     while(scanf("%d%d%d",&a,&b,&c) != EOF)
 19         bfs();
 20     system("pause");
 21     return 0;
 22 }
 23 
 24 void bfs()
 25 {
 26     Node pot;
 27     Node lx,lc;
 28     memset(visit,0,sizeof(visit));
 29     pot.liter1 = 0;
 30     pot.liter2 = 0;
 31     pot.step = 0;
 32     pot.pre = -1;
 33     Q.front = Q.rear = 1;
 34     Q.q[Q.rear++= pot;
 35     visit[0][0= 1;
 36     while(Q.front != Q.rear){
 37         lc = Q.q[Q.front++];
 38         if(lc.liter1 == c || lc.liter2 == c)break;
 39         for(int i = 1;i < 7;i++){
 40             if(i == 1){
 41                 lx.liter1 = a;
 42                 lx.liter2 = lc.liter2;
 43                 lx.step = lc.step + 1;
 44                 lx.pre = Q.front-1;
 45                 lx.flag = i;
 46                 if(visit[lx.liter1][lx.liter2] == 0){
 47                     visit[lx.liter1][lx.liter2] = 1;
 48                     Q.q[Q.rear++= lx;
 49                 }
 50             }
 51             if(i == 2){
 52                 lx.liter1 = lc.liter1;
 53                 lx.liter2 = b;
 54                 lx.step = lc.step + 1;
 55                 lx.pre = Q.front-1;
 56                 lx.flag = i;
 57                 if(visit[lx.liter1][lx.liter2] == 0){
 58                     visit[lx.liter1][lx.liter2] = 1;
 59                     Q.q[Q.rear++= lx;
 60                 }
 61             }
 62             if(i == 3){
 63                 lx.liter1 = 0;
 64                 lx.liter2 = lc.liter2;
 65                 lx.step = lc.step + 1;
 66                 lx.pre = Q.front-1;
 67                 lx.flag = i;
 68                 if(visit[lx.liter1][lx.liter2] == 0){
 69                     visit[lx.liter1][lx.liter2] = 1;
 70                     Q.q[Q.rear++= lx;
 71                 }
 72             }
 73             if(i == 4){
 74                 lx.liter1 = lc.liter1;
 75                 lx.liter2 = 0;
 76                 lx.step = lc.step + 1;
 77                 lx.pre = Q.front-1;
 78                 lx.flag = i;
 79                 if(visit[lx.liter1][lx.liter2] == 0){
 80                     visit[lx.liter1][lx.liter2] = 1;
 81                     Q.q[Q.rear++= lx;
 82                 }
 83             }
 84             if(i == 5){//2 to 1
 85                 if(lc.liter1 + lc.liter2 > a){
 86                     lx.liter1 = a;
 87                     lx.liter2 = lc.liter1 + lc.liter2 - a;
 88                 }
 89                 else{
 90                     lx.liter1 = lc.liter1 + lc.liter2;
 91                     lx.liter2 = 0;
 92                 }
 93                 lx.step = lc.step + 1;
 94                 lx.pre = Q.front-1;
 95                 lx.flag = i;
 96                 
 97                 if(visit[lx.liter1][lx.liter2] == 0){
 98                     visit[lx.liter1][lx.liter2] = 1;
 99                     Q.q[Q.rear++= lx;
100                 }
101             }
102             if(i == 6){//1 to 2
103                 if(lc.liter1 + lc.liter2 > b){
104                     lx.liter1 = lc.liter1 + lc.liter2 - b;
105                     lx.liter2 = b;
106                 }
107                 else{
108                     lx.liter1 = 0;
109                     lx.liter2 = lc.liter1 + lc.liter2;
110                 }
111                 lx.step = lc.step + 1;
112                 lx.pre = Q.front-1;
113                 lx.flag = i;
114                 
115                 if(visit[lx.liter1][lx.liter2] == 0){
116                     visit[lx.liter1][lx.liter2] = 1;
117                     Q.q[Q.rear++= lx;
118                 }
119             }
120         }
121     }
122     if(Q.front == Q.rear){
123         printf("impossible\n");
124         return;
125     }
126     j = 0;
127     for(int i = Q.front-1;i>=0;){
128         path[j++= i;
129         i = Q.q[i].pre;
130     }
131     printf("%d\n",Q.q[Q.front-1].step);
132     for(int i = j-1;i>= 0;i--){
133         switch(Q.q[path[i]].flag){
134             case 1:printf("FILL(1)\n");break;
135             case 2:printf("FILL(2)\n");break;
136             case 3:printf("DROP(1)\n");break;
137             case 4:printf("DROP(2)\n");break;
138             case 5:printf("POUR(2,1)\n");break;
139             case 6:printf("POUR(1,2)\n");break;
140         }
141     }
142         
143 }
code
posted @ 2009-06-09 11:27 Johnnx 閱讀(430) | 評(píng)論 (0)編輯 收藏
http://acm.pku.edu.cn/JudgeOnline/problem?id=3087
這道題目在網(wǎng)上的一些分類中把它分在BFS的范圍,可是只需用程序模擬出題目中說明的過程,就可以直接得出結(jié)果了c
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 int n,m;
 5 char s1[101],s2[101],s[201];
 6 int process();
 7 int main()
 8 {
 9     scanf("%d",&n);
10     int i = 1;
11     while(n--){
12         scanf("%d %s %s %s",&m,s1,s2,s);
13         printf("%d %d\n",i++,process());
14     }
15     system("pause");
16     return 0;
17 }
18 
19 int process()
20 {
21     int i;
22     int step = 1;
23     char cmp[201],p1[101],p2[101];
24     strcpy(p1,s1);
25     strcpy(p2,s2);
26     int a = 2;
27     while(1){
28         for(i = 0;i < m;i++){
29             cmp[i*2= p2[i];
30         }
31         for(i = 0;i < m;i++){
32             cmp[i*2+1= p1[i];
33         }
34         cmp[2*m] = '\0';
35         if(!strcmp(cmp,s))return step;
36         for(i = 0;i < m;i++){
37             p1[i] = cmp[i];
38             p2[i] = cmp[i+m];
39         }
40         p1[m] = '\0';
41         p2[m] = '\0';
42         if(!strcmp(p1,s1) && !strcmp(p2,s2))break;
43         step++;
44     }
45     return -1;
46 }
47 
ode
posted @ 2009-06-08 16:18 Johnnx 閱讀(291) | 評(píng)論 (0)編輯 收藏
     摘要: POJ3126(http://acm.pku.edu.cn/JudgeOnline/problem?id=3126)是一道很經(jīng)典的廣搜題。我在網(wǎng)上看到有多種不同的搜索思路,所以自己也把這些不同的方法一一試了遍。方法1:從隊(duì)列中取出的節(jié)點(diǎn)數(shù)據(jù),分個(gè)十百千四種情況,利用i循環(huán),推出下一節(jié)點(diǎn),再使其入隊(duì)cCode highlighting produced by Actipro CodeHighligh...  閱讀全文
posted @ 2009-06-05 09:22 Johnnx 閱讀(1080) | 評(píng)論 (0)編輯 收藏
這是一個(gè)樹的遍歷轉(zhuǎn)換問題,已知樹的前序遍歷和中序遍歷,求出樹的后序遍歷。一開始的想法是先利用前序遍歷和中序遍歷,構(gòu)造出二叉樹,再對(duì)這個(gè)二叉樹進(jìn)行后序遍歷輸出但
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 typedef struct node{
 5     char e;
 6     struct node *l,*r;
 7 }*tree;
 8 tree t;
 9 char s1[27],s2[27];
10 tree create(int pa,int pb,int ia,int ib);
11 void postorder(tree T);
12 int main()
13 {
14     int len;
15     while(scanf("%s%s",s1,s2) != EOF){
16         len = strlen(s1);
17         t = create(0,len-1,0,len-1);
18         postorder(t);
19         printf("\n");
20     }
21     system("pause");
22     return 0;
23 }
24 tree create(int pa,int pb,int ia,int ib)
25 {
26     int i;
27     tree T;
28     if(pa <= pb && ia <= ib){
29         T = (tree)malloc(sizeof(struct node));
30         T->= s1[pa];
31         for(i = ia;i <= ib;i++){
32             if(s1[pa] == s2[i])break;
33         }
34         int len1 = i - ia;
35         T->= create(pa+1,pa+len1,ia,i-1);
36         T->= create(pa+len1+1,pb,i+1,ib);
37     }
38     else
39         T = NULL;
40     return T;
41 }
42 void postorder(tree T)
43 {
44     if(T != NULL){
45         postorder(T->l);
46         postorder(T->r);
47         printf("%c",T->e);
48     }
49 }
50 
是后來在網(wǎng)上看到一些大牛的作法:直接利用遞歸,就可以后序輸出結(jié)果這
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 char s1[27],s2[27];
 5 void createprint(int pa,int pb,int ia,int ib);
 6 int main()
 7 {
 8     int len;
 9     while(scanf("%s%s",s1,s2) != EOF){
10         len = strlen(s1);
11         createprint(0,len-1,0,len-1);
12         printf("\n");
13     }
14     system("pause");
15     return 0;
16 }
17 void createprint(int pa,int pb,int ia,int ib)
18 {
19     int i;
20     if(pa == pb){
21         printf("%c",s1[pa]);
22         return;
23     }
24     if(pa > pb || ia > ib)return;
25     for(i = ia;i <= ib;i++)
26         if(s1[pa] == s2[i])break;
27     int len1 = i - ia;
28     createprint(pa+1,pa+len1,ia,i-1);
29     createprint(pa+len1+1,pb,i+1,ib);
30     printf("%c",s1[pa]);
31 }
32 
是太巧妙了,可以省略掉建樹這一步。這道題的代碼雖然不長,也可以因此減少幾乎一半的代碼。我還得好好體會(huì)體會(huì)。
posted @ 2009-05-30 20:41 Johnnx 閱讀(333) | 評(píng)論 (0)編輯 收藏
這道題目是利用廣度優(yōu)先搜索的算法我
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 typedef struct node{
 5     int x,step;
 6 }Node;
 7 struct queue{
 8     Node array[100001];
 9     int front,rear;
10 }Queue;
11 int N,K;
12 int visit[100001];
13 void enqueue(Node data);
14 Node dequeue();
15 int judge();
16 int bfs();
17 int main()
18 {
19     while(scanf("%d %d",&N,&K) != EOF){
20         Queue.front = Queue.rear = 0;
21         memset(visit,0,sizeof(visit));
22         if(N == K)printf("0\n");
23         else
24             printf("%d\n",bfs());
25     }
26     system("pause");
27     return 0;
28 }
29 
30 void enqueue(Node data)
31 {
32     Queue.array[Queue.rear].x = data.x;
33     Queue.array[Queue.rear].step = data.step;
34     Queue.rear++;
35 }
36 Node dequeue()
37 {
38     Node data;
39     data.x = Queue.array[Queue.front].x;
40     data.step = Queue.array[Queue.front].step;
41     Queue.front++;
42     return data;
43 }
44 int judge()
45 {
46     if(Queue.front == Queue.rear)return 0;
47     return 1;
48 }
49 
50 int bfs()
51 {
52     Node lc,lx;
53     lx.x = N;
54     lx.step = 0;
55     visit[N] = 1;
56     enqueue(lx);
57     while(judge()){
58         lc = dequeue();
59         for(int i = 0;i < 3;i++){
60             if(i == 0){
61                 lx.x = lc.x-1;
62                 lx.step = lc.step+1;
63                 if(lx.x == K)return lx.step;
64                 else if(!visit[lx.x] && lx.x >= 0 && lx.x < 100001){
65                     visit[lx.x] = 1;
66                     enqueue(lx);
67                 }
68             }
69             if(i == 1){
70                 lx.x = lc.x+1;
71                 lx.step = lc.step+1;
72                 if(lx.x == K)return lx.step;
73                 else if(!visit[lx.x] && lx.x >= 0 && lx.x < 100001){
74                     visit[lx.x] = 1;
75                     enqueue(lx);
76                 }
77             }
78             if(i == 2){
79                 lx.x = lc.x*2;
80                 lx.step = lc.step+1;
81                 if(lx.x == K)return lx.step;
82                 else if(!visit[lx.x] && lx.x >= 0 && lx.x < 100001){
83                     visit[lx.x] = 1;
84                     enqueue(lx);
85                 }
86             }
87         }
88     }
89 }
90 
用的是C,隊(duì)列得自己寫,如果是C++的話,可以直接調(diào)用Queue庫,減少很多代碼。
posted @ 2009-05-28 15:55 Johnnx 閱讀(560) | 評(píng)論 (0)編輯 收藏
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 char a[101][7],s[7];
 5 int compare(const void *p,const void *q)
 6 {
 7     return (*(char *)p - *(char *)q);
 8 }
 9 int check(char p[7],char q[7]);
10 int main()
11 {
12     char c[7];
13     int i,j,flag,n;
14     i = 0;
15     while(scanf("%s",&a[i]) && strcmp(a[i],"XXXXXX")){
16         i++;
17     }
18     n = i;
19     for(i = 0;i < n-1;i++){
20         for(j = i;j < n;j++){
21             if(strcmp(a[i],a[j]) > 0){
22                 strcpy(c,a[i]);
23                 strcpy(a[i],a[j]);
24                 strcpy(a[j],c);
25             }
26         }
27     }
28     while(scanf("%s",s) && strcmp(s,"XXXXXX")){
29         flag = 1;
30         for(j = 0;j < n;j++){
31             if(check(s,a[j])){
32                 flag = 0;
33                 printf("%s\n",a[j]);
34             }
35         }
36         if(flag){
37             printf("NOT A VALID WORD\n");
38         }
39         printf("******\n");
40     }
41     system("pause");
42     return 0;
43 }
44 int check(char p[7],char q[7])
45 {
46     char c[7];
47     int len1,len2;
48     int i;
49     len1 = strlen(p);
50     len2 = strlen(q);
51     if(len1 != len2)
52     return 0;
53     strcpy(c,q);
54     qsort(c,len2,sizeof(char),compare);
55     qsort(p,len1,sizeof(char),compare);
56     for(i = 0;i < len1;i++){
57         if(c[i] != p[i]){
58            return 0;
59         }
60     } 
61     return 1;
62 }
63 我在做1318時(shí)遇到過一個(gè)問題,當(dāng)對(duì)字典字符串排序時(shí)不能用qsort,因?yàn)樗粚?duì)各個(gè)字符串首字母進(jìn)行排序,比如:輸入Sample Input 中的tarp,trap,用aptr查時(shí)結(jié)果卻是trap在前面。但是如果是用C++則可直接調(diào)用sort對(duì)字典進(jìn)行排序。沒辦法,只有自己編了,19~27行,用了一般的排序方法,兩個(gè)for循環(huán),時(shí)間達(dá)到了O(n^2),但是竟然是0MS,AC。我想可能是因?yàn)轭}目把字典字符串?dāng)?shù)限制在100以內(nèi)吧,數(shù)量不大。
posted @ 2009-04-22 22:36 Johnnx 閱讀(322) | 評(píng)論 (0)編輯 收藏
POJ 2418這個(gè)題目要求輸入多個(gè)字符串,按alphabetical(字母大小)順序輸出,并且統(tǒng)計(jì)每種字符串出現(xiàn)的百分比。其中重要的一點(diǎn)就是對(duì)字符串進(jìn)行排序,這時(shí)我們考慮用BST(二叉搜索樹)來存儲(chǔ)數(shù)據(jù),然后按中序輸出,至于百分比在存儲(chǔ)數(shù)據(jù)時(shí)附加上就行了。BST是一個(gè)很高效的算法,插入時(shí)的時(shí)間復(fù)雜度是線性的。
 1 #include<stdio.h>
 2 #include<string.h>
 3 #include<stdlib.h>
 4 char a[31];
 5 typedef struct nod{
 6     char b[31];
 7     int num;
 8     struct nod *lchild,*rchild;
 9 }node;
10 node *bt;
11 int count = 0;
12 void Insert();
13 void print(node *p);
14 int main()
15 {
16     bt = NULL;
17     while(strcmp(gets(a),"##")){
18         count++;
19         Insert();
20     }
21     print(bt);
22     system("pause");
23     return 0;
24 }
25 void Insert()
26 {
27     node *= bt;
28     node *= NULL;//q在這里有2個(gè)作用 ,太巧妙了 
29     int flag = 0
30     while(p != NULL){
31         if(!strcmp(a,p->b)){
32             p->num++;
33             return;
34         }
35         q = p;
36         p = strcmp(a,p->b) > 0?p->rchild:p->lchild;
37         flag = 1;
38     }
39     if(q == NULL){//q的第1個(gè)作用:判斷是否為空樹 
40         bt = (node *)malloc(sizeof(struct nod));
41         strcpy(bt->b,a);
42         bt->num = 1;
43         bt->lchild = NULL;
44         bt->rchild = NULL;
45     }
46     else{
47         if(flag){
48             p = (node *)malloc(sizeof(struct nod));
49             strcpy(p->b,a);
50             p->num = 1;
51             p->lchild = NULL;
52             p->rchild = NULL;
53         }
54         if(strcmp(q->b,a) > 0){//q的第2個(gè)作用:記錄p結(jié)點(diǎn),以便能使插入的結(jié)點(diǎn)連接到樹中 
55             q->lchild = p;
56         }
57         else{
58             q->rchild = p;
59         }
60     }                  
61 }
62 void print(node *p)
63 {
64     if(p != NULL){
65         print(p->lchild);
66         printf("%s %.4f\n",p->b,100.0*p->num/count);//注意這里*100.0
67         print(p->rchild);
68     }
69 }
70 
posted @ 2009-04-18 16:30 Johnnx 閱讀(511) | 評(píng)論 (0)編輯 收藏
僅列出標(biāo)題
共3頁: 1 2 3 

導(dǎo)航

<2009年9月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

統(tǒng)計(jì)

常用鏈接

留言簿(1)

隨筆檔案

搜索

最新評(píng)論

閱讀排行榜

評(píng)論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美/亚洲一区| 国产精品福利在线观看网址| 亚洲国产欧洲综合997久久| 亚洲免费视频一区二区| av72成人在线| 日韩一区二区精品视频| 日韩视频在线免费观看| 亚洲精品乱码久久久久久黑人| **性色生活片久久毛片| 亚洲人成艺术| 一区二区三区欧美在线| 久久精品中文| 久久久久天天天天| 免费短视频成人日韩| 欧美大色视频| 国产精品久久久久久久午夜片| 国产精品分类| 尤物在线精品| 亚洲视频一区二区| 久久经典综合| 亚洲激情婷婷| 亚洲午夜一区二区三区| 久久久久国产一区二区三区| 久久亚洲私人国产精品va| 欧美另类女人| 韩国av一区| 亚洲一区在线直播| 欧美激情第二页| 亚洲欧美日本国产专区一区| 欧美成人免费在线观看| 韩国精品久久久999| 亚洲自拍偷拍色片视频| 亚洲国产成人av好男人在线观看| 亚洲综合成人在线| 欧美日韩伦理在线免费| 亚洲激情综合| 免费欧美日韩| 久久久久高清| 狠狠色狠狠色综合日日tαg| 亚洲欧美成人网| 亚洲精选中文字幕| 免费日韩一区二区| 在线观看国产日韩| 久久蜜臀精品av| 亚洲欧美三级伦理| 国产欧美在线观看一区| 欧美在线啊v一区| 亚洲欧美国产日韩天堂区| 欧美日韩专区| 一区二区三欧美| 亚洲精品一区二区三区婷婷月 | 欧美一区二区三区在线看| 亚洲国产精品日韩| 欧美暴力喷水在线| 亚洲盗摄视频| 欧美1区视频| 美女国产一区| 亚洲精品无人区| 亚洲日本成人网| 欧美日韩xxxxx| 一区二区三区偷拍| 亚洲最新视频在线| 国产精品久久久久久久电影 | 亚洲高清二区| 亚洲国产精品成人综合色在线婷婷| 亚洲欧美在线观看| 国产精品久久久久7777婷婷| 亚洲女人小视频在线观看| 亚洲小说欧美另类社区| 国产日韩一区二区三区在线播放| 久久久久久久波多野高潮日日| 久久精品123| 亚洲电影免费观看高清完整版| 欧美国产第一页| 欧美精品少妇一区二区三区| 亚洲一区三区电影在线观看| 欧美一区二区福利在线| 怡红院精品视频在线观看极品| 欧美电影在线免费观看网站| 欧美理论电影在线观看| 亚洲欧美日韩国产综合精品二区 | 欧美精品黄色| 亚洲免费在线播放| 新67194成人永久网站| 精品成人免费| 亚洲美女少妇无套啪啪呻吟| 国产精品免费网站在线观看| 可以免费看不卡的av网站| 欧美精品久久一区二区| 午夜精品国产| 免费高清在线一区| 小嫩嫩精品导航| 麻豆成人在线播放| 亚洲综合色婷婷| 老司机成人在线视频| 中日韩午夜理伦电影免费| 久久精品亚洲一区二区三区浴池| 9国产精品视频| 欧美在线免费视屏| 亚洲五月婷婷| 久久久午夜精品| 亚洲在线免费| 欧美成熟视频| 久久久99国产精品免费| 欧美激情视频给我| 久久动漫亚洲| 欧美视频中文在线看| 欧美激情第4页| 国内精品久久久久影院色 | 亚洲色图在线视频| 久久夜色精品国产亚洲aⅴ| 亚洲永久免费观看| 欧美激情女人20p| 麻豆久久久9性大片| 国产精品久久久久久亚洲调教 | 亚洲精品美女免费| 欧美一区午夜视频在线观看| 亚洲视频在线观看| 欧美寡妇偷汉性猛交| 你懂的国产精品永久在线| 国产女主播一区二区三区| 亚洲高清三级视频| 亚洲国产精品第一区二区三区| 另类天堂视频在线观看| 国产精品v欧美精品∨日韩| 亚洲成在人线av| 国产在线欧美| 亚洲综合99| 亚洲欧美国产精品va在线观看 | 亚洲在线视频| 亚洲一区二区三区免费视频| 欧美理论视频| 99在线观看免费视频精品观看| 日韩视频在线观看| 欧美大片国产精品| 亚洲国产aⅴ天堂久久| 亚洲成在线观看| 麻豆国产精品一区二区三区| 欧美好骚综合网| 日韩亚洲国产欧美| 欧美精品尤物在线| 亚洲免费观看高清完整版在线观看熊| 亚洲丶国产丶欧美一区二区三区 | 另类综合日韩欧美亚洲| 国产午夜精品久久| 午夜精品在线| 久久久久久久综合| 影音先锋另类| 久久综合一区| 亚洲黄一区二区| 亚洲午夜视频在线观看| 国产精品午夜久久| 久久精品水蜜桃av综合天堂| 美女精品在线观看| 日韩一级视频免费观看在线| 欧美日韩一区免费| 欧美一级视频一区二区| 麻豆精品在线观看| 亚洲美女91| 国产精品永久免费在线| 久久国产精品久久w女人spa| 欧美成人精品影院| 亚洲一区二区久久| 国产亚洲欧美日韩一区二区| 蜜桃久久精品乱码一区二区| 亚洲美女视频| 久久亚洲综合色| 亚洲视频日本| 黄色成人在线免费| 欧美精品乱码久久久久久按摩| 一本一本久久a久久精品综合麻豆| 久久精品国产久精国产爱| 1024欧美极品| 国产精品v欧美精品∨日韩| 久久精品国产久精国产思思| 欧美成人自拍| 亚洲视频播放| 在线免费观看欧美| 国产精品久久国产精麻豆99网站| 欧美诱惑福利视频| 一本一本a久久| 免费看的黄色欧美网站| 亚洲免费影院| 亚洲大片在线观看| 国产精品中文在线| 欧美国产日韩精品| 久久精品国产精品| 亚洲午夜精品一区二区三区他趣 | 狂野欧美激情性xxxx| 亚洲韩国精品一区| 久久er精品视频| 亚洲午夜成aⅴ人片| 国产一区二区福利| 欧美午夜精品理论片a级按摩| 久久艳片www.17c.com| 亚洲综合第一| 亚洲日本成人| 亚洲高清视频一区二区| 久久xxxx精品视频| 在线午夜精品自拍|