Follows 10297.c (Total 18 lines):

/* @JUDGE_ID:4461XX 10297 C */
/* A */
#include<stdio.h>
#include<math.h>
#define PI 3.141592653589

int main( void )
{
	int D , V ;

	while( scanf( "%d %d" , &D , &V )==2 ){
		if( !D&&!V ) break ;

		printf( "%.3f\n" , pow( D*D*D-6.0*V/PI , 1.0/3.0 ) ) ;
	}

	return 0 ;
}

Back to statistics
Ya-Lin Huang (C)
huangyl@gmail.com