Search found 6 matches

by mindboggler
Mon Jan 15, 2007 1:27 pm
Forum: Bugs and suggestions
Topic: Request for Feeds
Replies: 4
Views: 2118

yep, I mean that
by mindboggler
Mon Jan 15, 2007 8:46 am
Forum: Bugs and suggestions
Topic: Request for Feeds
Replies: 4
Views: 2118

Request for Feeds

Hi,

Feeds would be such a great feature to this site. More specifically I would want a feed for upcoming contests. Thanks in advance.
by mindboggler
Sun Aug 13, 2006 4:36 pm
Forum: Volume 110 (11000-11099)
Topic: 11064 - Number Theory
Replies: 25
Views: 21784

This is how I am calculating the prime numbers..


//Here n is the number for which I am trying to find the primes
int x=n;
double totient = n;
int y=2;
while(x!=0) {
while(x%y!=0 && y<x) y++;
if (y>x || y==n) break;
totient *= ((double)y-1.0)/(double)y;
while(x%y==0) x=x/y;
}


For Example, a ...
by mindboggler
Sun Aug 13, 2006 12:45 pm
Forum: Volume 110 (11000-11099)
Topic: 11064 - Number Theory
Replies: 25
Views: 21784

Euler Totient Function?

I am using Euler Totien'ts function....which is timing out for some cases because it is difficult to find the prime numbers. Please give me a small hint.

Thank you
by mindboggler
Mon Jul 17, 2006 4:19 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37233

104 - Please explain the test case?

4
3.1 0.0023 0.35
0.21 0.00353 8.13
200 180.559 10.339
2.11 0.089 0.06111

We are require to find the lexicographically smallest sequence giving profit greater than 1.0 right?
Then Shouldnt the answer sequence be
1 2 3 1 ?
When we start with 1 unit of currency 1, by above sequence we end up with 2 ...
by mindboggler
Sun May 14, 2006 1:38 pm
Forum: Other words
Topic: After Contest Practice
Replies: 1
Views: 1932

After Contest Practice

Hi,

I am a newbie around here. Is there a way I could submit my code after the contest has elapse[for practise, ofcourse].

Sorry, if this issue has been addressed elsewhere.

Thank you

Go to advanced search