Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

double很强……123456789101112131415存不下,都AC了……

Posted by lqp18_31 at 2009-08-08 22:08:47 on Problem 1950
    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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator