#include<stdio.h>/*2003/03/02. d() ;sub d{$P =# q'" */ int s,h,i,a,_[256]; double e, n/* ,*/; unsigned char/*v^_^;;*/t[8192]; #/* */include/* "*/<math.h> /*// `"ten*/ /* */int main( /*/ ////// */int u, /*" / // // */ char ** v){ /*,P m \ / // ####### ######## dP zZ ! KO GE ////////"9b ####### ######## o' && 03 && lc ' Pr i nT S ca l aR ( lo Ca Lt im E) , " \n"'; $P =~y/ //d ; uc # $b ;; eval$P ;$L =q' */ FILE *m ; ;; if ( 1<u){a= 1;for( ;a<u;a -= - 01 ){ if ( (( m= fopen (v[ a], ( "rb\0") )) )) {h = 0; for ( i =0;+(+1<< 8) >i;_[+i++]=0) ;{ ;} for (; !feof( m )&&(+i++); (h ) +=-(00)+s) { if ( (s = fread( t,1,16<<+(+1+ 8), m))==0)break ;for( *& i= 0;i <s ;_[t [+i++]] ++);}+fclose (m/* ," "=. ?*/ );for(e =+ i=00;i< 256 ;++ i)if (_[i]){ ; n=(double)_ [i]/h;e -= n*log (n)/log(2 );{;}} printf ("%s:\40"/* `*/ "%f bits\n\0 ",v[a], e); }}} return /*' *8- q/ */ -0 ;} |