Search found 11 matches

by eshika
Tue Jan 11, 2005 11:01 am
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 39293

infact you do not even need to find primes at all.
Would you please explain in more detail?
by eshika
Sun Jan 09, 2005 11:07 am
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 39293

Thanks all of you to response.
I haven’t worked yet.
As far as I know sieve method is efficient for generating primes upto 1 million (1000000) only. But in this problem L and U are chosen such that 1<=L<=U<=1000000000.
Should I use sieve method for this problem?
by eshika
Tue Jan 04, 2005 10:19 am
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 39293

294:DIVISORS...RUNTIME ERROR...PLEASE HELP!!!!!!!

I got runtime error. Please help me.
I have precalculated prime numbers. Then computed the divisors for n where n =p1^e1* p2^e2* ... *pn^en equals (e1+1)*(e2+1)*...*(en+1).


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

int Isprime(int I);

int primes[10000]={2};
long double lu;
unsigned long max,sum,j,p,N ...
by eshika
Sun Jan 02, 2005 10:42 am
Forum: Volume 6 (600-699)
Topic: 686 - Goldbach's Conjecture (II)
Replies: 41
Views: 27668

Thanks a lot!
by eshika
Sat Jan 01, 2005 10:53 am
Forum: Volume 6 (600-699)
Topic: 686 - Goldbach's Conjecture (II)
Replies: 41
Views: 27668

686:Goldbach's Conjecture (II) WHY WRONG ANSWER?????

I have checked the code several times but cannot find out the error. Could anybody suggest?

Code: Select all

//deleted
by eshika
Wed Dec 29, 2004 11:20 am
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41186

Thank you.
It is now accepted.
by eshika
Mon Dec 27, 2004 12:00 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 41186

543

deleted
by eshika
Wed Dec 15, 2004 10:11 am
Forum: Volume 100 (10000-10099)
Topic: 10023 - Square root
Replies: 121
Views: 45377

Would you explain in more details?
Should I use string operations? I have read few threads in this forum regarding 727 after I got WA. Many of them get accepted using sqrtl() with long double. As I expected sqrtl() surprisingly solves the problem. Then what is wrong with my code?
by eshika
Wed Dec 15, 2004 6:59 am
Forum: Volume 100 (10000-10099)
Topic: 10023 - Square root
Replies: 121
Views: 45377

10023

Can anybody tell me, why WA?
[c]
#include<stdio.h>
#include<math.h>

void main()
{
int n,i;
long double x,y;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%Lf",&y);
x=sqrtl(y);
printf("%.0Lf\n\n",x);
}
}

[/c]
by eshika
Thu Oct 14, 2004 11:01 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 56833

727

Why my program is getting run time error? Is it for stack overflow? How can I handle multiple input? Can anybody help?
by eshika
Sat Oct 02, 2004 12:19 pm
Forum: Other words
Topic: How to stop displaying wrong statistics?anyone suggest??????
Replies: 1
Views: 1064

How to stop displaying wrong statistics?anyone suggest??????

I have solved many problems. But my statistics shows only few solved problems from today. How can I soved the problem? Can anybody suggest?

Go to advanced search