2019 2
1. : 2. :
(1) ? : A#: (, ), [, ] , {, } A
1: 8*(3+3)/5*[9-3]+9# :
2: 8*(9-6)/5*[3+3*{9-5}]# :
2: 8*(9-6)/5]*[3+3*{9-5}# :
(2) 12
1
front rear ( 1 ) front front+1
front front+1 1
(3) :: n x: x
:
x[0..9]:31- 41, 59, 26-53, 58, 97-93-23, 84; :x[2..6] 187 :(A) O(n* n)
(B) O(n log n) (C) (D)
[]
[]
(4) (A)
sum1( int n )
{ int p=1, sum=0, m ;
for (m=1; m<=n; m++) { p*=m ; sum+=p ; } return (sum) ;}(B) sum2( int n ){int sum=0, m, t ;for (m=1; m<=n; m++) { p=1 ;for (t=1; t<=m; t++)sum+=p ; }return (sum) ; }(C) fact( int n ){ if (n<=1) return(1) ;else return( n*fact(n-1)) ; }(D) n for(i=1i<=n; ++i)for(j=1; j<=n; ++j) { c[i][j]=0 ;p*=t ;for(k=1; k<=n; ++k) c[i][j]+=a[i][k]*b[k][j] ; }(5) 8*8 (6) *:() : 0 9 , 1 9 , , sum: t t t nm n*m n m 1<=n, m<=100t<=20: sum :cell.in14 100234500067 1034560500 2045600671 0000000089 :cell.out 43. :(1) :: 1_ X-;:ReadMe( .txt;);( .doc); ( .c/ .cpp ;);(2):2019 5 20 ; (3):[email protected] : 2_ X-4. :(Word ) : (.cpp)
Reviews
There are no reviews yet.