Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
double很强……123456789101112131415存不下,都AC了……for( int i=N ; i>=0 ; i-- ){ c[ i ]=c[ i+1 ]+i*t; if( i>=10 ) t*=100.0; else t*=10.0; } for( int i=0 ; i<=N; i++) for( int j=i ; j<=N ; j++){ w[ i ][ j ]=c[ i ]-c[ j+1 ]; int t=0; for( int k=j+1 ; k<=N; k++) t+=(1+(k>=10)); for( int k=1 ; k<=t; k++) w[ i ][ j ]/=10.0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator