Search found 2 matches

by santosh
Wed Jun 15, 2011 3:21 pm
Forum: Volume 4 (400-499)
Topic: 465 - Overflow
Replies: 104
Views: 39148

Re: 465 - Overflow

all my outputs matched with the test cases given above...but got wa..can anyone give me more test cases????
by santosh
Thu Apr 14, 2011 3:07 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 27600

Re: 11428 - Cubes



#include<stdio.h>
#include<math.h>

int main()
{
int flag , j , k , k1 ;
int i , temp , temp1 ;
int a[50] , b[50] ;

for(j=0 ; j<50 ; j++)
a[j] = pow(j , 3) ;

while( scanf("%d" , &i ) == 1 )
{
if( i == 0 )
break ;

for(j=0 ; j<50 ; j++)
b[j] = 0 ;

k=0 ;
for(j=0 ; j<50 ; j++)
{
if ...

Go to advanced search