摘要:
【5.1】 1 #include 2 #define MAXSIZE 1000 3 double GetAve(int a[],int n) //求数组a[]前n个数的平均数 4 { 5 if(n==1) 6 return a[1]; 7 return (a[... 阅读全文
摘要:
【4.1】 1 // 4.1 2 #include 3 #define MAXSIZE 1000 //字符串最大长度 4 int pattern_index(char t[],char s[]) //BF算法 5 { 6 int i,j; 7 for(i=0;s[i];... 阅读全文
摘要:
HyperspaceTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1023Accepted Submission(s): 492Problem... 阅读全文