Search found 4 matches

by shuza
Sun Apr 28, 2013 12:05 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 61198

Re: 583 - Prime Factors

i am getting CE!!! i can't understand why??
#include <stdio.h>
#include <math.h>

int main()
{
long N;
while(scanf("%ld", &N))
{
if(N == 0)
break;
printf("%ld = ", N);
if(N < 0)
{
printf("-1 x ");
N = -N;
}
long sq = sqrt(N);
int factor[10000], l = 0, i;
while(N % 2 == 0)
{
factor[l ...
by shuza
Sat May 26, 2012 10:15 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70212

Re: 10137 - The Trip

i have tried above input and answer is right....but still getting WA......i don't understand why?????
#include <stdio.h>
#include <stdlib.h>

int main()
{
int i, n ;
double a[1001], avg, ans, more, less ;
while( scanf( "%d", &n )==1 )
{
if( n==0 )
break ;
avg=0 ;
for( i=0 ; i<n ; i ...
by shuza
Fri May 25, 2012 11:07 am
Forum: Volume 113 (11300-11399)
Topic: 11389 - The Bus Driver Problem
Replies: 10
Views: 10240

Re: 11389 - The Bus Driver Problem

my code is giving the same result but getting wa can anyone give critical input??????
by shuza
Sun May 06, 2012 1:39 am
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45452

Re: 10101 - Bangla Numbers

why PE ??? can't understand.....here is my code

get AC thnx.....

Go to advanced search