全文预览

C语言机试答案

上传者:徐小白 |  格式:pdf  |  页数:54 |  大小:6959KB

文档介绍
*10; t=t+(s[iJ-'O'); }\rreturn t;\r)\r%?z{|}\r~.\rKL9:U < fu n VW#.XYuv€m ‚<P\]0<ƒ„?<=a\rn.a[0]ƒ„0 \]0<a[I]ƒ „ 1 \]0<... a[9]ƒ„9 \]0<\r1@a[i] 2@ m%10 3@m/10;\rIJ.\rKL9:MODI1.CU<funVW#x†‡(ˆ‰<=)a[N][N][ŠdaC‹g\rƒ„?<=b \r1@b[i] = a[0][0];I0 b[i] = a[i][0];\r2@for (j=l; j v N-l; j++)I0\rfor (j= 1; j<=N-l; j++)\r3@if(b[ij< a[ij[jj)I0 if(b[i]> a[i]ljj)\r9:lYm.\r3bU<fu n ,nVW#.c?=Œ_?&de_??&dŽ_x‘’C,\r”•U<–—U<˜™a Zšƒ„Œ_<=˜™n ƒ„Œ_&<(n>2)Y\r(\rint i, j; double s=0.0, t;\rfor (i=0; i<n-l; i++)\rfor (j=i+l; j<n; j++)\rif(a[i]>a[jl) {\rt = a[i];a[i] = a[j];a[j] = t;}\rfor (i=l; i<n-l; i++)\rs += a[i];\rreturn s/(n-2);\r)\r<PIXTEL_MMI_EBOOK_2005>7.\r</PIXTEL MMI EBOOK 2005>

收藏

分享

举报
下载此文档