View Code 1 #include<stdio.h> 2 #include<string.h> 3 #define MAX 32200 4 int c[MAX],level[MAX]; 5 int n; 6 int get_val() 7 { 8 int ret(0); 9 char c; 10 while((c=getchar())==''||c=='\n'||c=='\r'); 11 ret=c-'0'; 12 while((c=getchar())!=''&&c! Read More
posted @ 2011-08-28 19:01 Because Of You Views(303) Comments(1) Diggs(0) Edit
Matrix Chain MultiplicationTime Limit:1000MS Memory Limit:32768KTotal Submit:36 Accepted:26DescriptionMatrix multiplication problem is a typical example of dynamical programming.Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is Read More
posted @ 2011-08-28 13:05 Because Of You Views(376) Comments(0) Diggs(0) Edit