Follows 10110.c (Total 21 lines):

/* @JUDGE_ID:4461XX 10110 C */
/* A */
#include<stdio.h>
#include<math.h>

int main( void )
{
	unsigned int n , m ;
	
	while( scanf( "%u" , &n )==1 ){
		if( !n ) break ;
		
		m = (unsigned int)sqrt( (double)n ) ;
		
		if( m*m==n ) puts( "yes" ) ;
		else puts( "no" ) ;
	}

	return 0 ;
}
/* @END_OF_SOURCE_CODE */

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