Search found 108 matches

by Angeh
Tue Nov 02, 2010 9:57 pm
Forum: Volume 118 (11800-11899)
Topic: 11889 - Benefit
Replies: 27
Views: 11186

Re: 11889 - Benefit

do you find all Primes and check only with primes ?
you dont ever need to save them just after finding the number of a prime in the number check it and then forget it :D
optimizing Code will not take you far ... try to optimize the Algorithm ...
by Angeh
Tue Nov 02, 2010 4:41 pm
Forum: Volume 118 (11800-11899)
Topic: 11872 - Where to Run
Replies: 6
Views: 2601

Re: 11872 - Where to Run

is there other possibilities other than :
0 ..(3m).. 1(5m) ...(3m)...2(5m)
and then how is the Result 16 !!
But it is possible to stay more than once in the same junction.
what do you mean by this ??
by Angeh
Tue Nov 02, 2010 1:49 pm
Forum: Volume 118 (11800-11899)
Topic: 11872 - Where to Run
Replies: 6
Views: 2601

Re: 11872 - Where to Run

Thanks Leonid , now problem is better but i still don't understand it completely The probability of choosing to stay in the current junction or to go to each of the EJ is equal. it means that when reaching a junction we can either keep running or stay there for 5 minuts and then Run ... !!!! int the...
by Angeh
Tue Nov 02, 2010 1:05 pm
Forum: Volume 118 (11800-11899)
Topic: 11872 - Where to Run
Replies: 6
Views: 2601

11872 - Where to Run

What does the Problem Expect !!!
i cant understand the Problem ...
could somebody explain it ?
thanks ...
by Angeh
Tue Nov 02, 2010 9:13 am
Forum: Volume 118 (11800-11899)
Topic: 11896 - Inglorious Gangs
Replies: 0
Views: 1837

11896 - Inglorious Gangs

From Each node that has more than one child i start setting a boolean for each of its reachable child's ... (also take care not to go the same path twice ) if 2 of this paths reach each other then they are not Trapped .. else trapped ... i'm continuously getting WA!!!! can some body find a counter e...
by Angeh
Mon Nov 01, 2010 8:30 pm
Forum: Volume 118 (11800-11899)
Topic: 11889 - Benefit
Replies: 27
Views: 11186

Re: 11889 - Benefit

comment a part of your source code and submit it ... and check where in your code does lead to RTE ...
by Angeh
Mon Nov 01, 2010 6:30 pm
Forum: Volume 118 (11800-11899)
Topic: 11898 - Killer Problem
Replies: 6
Views: 3294

Re: 11898 - Killer Problem

vector will Time out ...
think whats The answer for the Quary 2-20000?????
by Angeh
Mon Nov 01, 2010 6:27 pm
Forum: Volume 118 (11800-11899)
Topic: 11889 - Benefit
Replies: 27
Views: 11186

Re: 11889 - Benefit

factorize the numbers
by Angeh
Mon Nov 01, 2010 6:15 pm
Forum: Volume 118 (11800-11899)
Topic: 11888 - Abnormal 89's
Replies: 11
Views: 6102

Re: 11888 - Abnormal 89's

if the string is s ... and its reverse is r....
try to find r in s+s
by Angeh
Mon Nov 01, 2010 5:33 pm
Forum: Volume 118 (11800-11899)
Topic: 11893 - Fabulous DAGy
Replies: 10
Views: 3301

Re: 11893 - Fabulous DAGy

yes ... or maybe somthing easier ... Find a longest Path of size n ...
by Angeh
Mon Nov 01, 2010 4:56 pm
Forum: Volume 118 (11800-11899)
Topic: 11898 - Killer Problem
Replies: 6
Views: 3294

Re: 11898 - Killer Problem

:)) solved it ... much more easier problem ... than what i was thinking ... lol ... :))
by Angeh
Mon Nov 01, 2010 7:11 am
Forum: Volume 118 (11800-11899)
Topic: 11893 - Fabulous DAGy
Replies: 10
Views: 3301

Re: 11893 - Fabulous DAGy

Check this .....
5 6
0 1
1 2
2 3
3 4
4 0
1 3
It's a Dagy ...
now i think its Easy To solve the Problem ...
by Angeh
Sun Oct 31, 2010 10:42 am
Forum: Volume 118 (11800-11899)
Topic: 11898 - Killer Problem
Replies: 6
Views: 3294

11898 - Killer Problem

HI experts ...
whats The Idea To solve this problem ...
i'm tired of thinking so much ...
by Angeh
Sun Oct 31, 2010 10:39 am
Forum: Volume 118 (11800-11899)
Topic: 11888 - Abnormal 89's
Replies: 11
Views: 6102

Re: 11888 - Abnormal 89's

I got AC in 0.088 with this Trivail solution ...
But i think there is also another solution ..
if the string is s ... and its reverse is r....
try to find r in s+s ..... if you use strstr() maybe you will Timeout ... :))
by Angeh
Sun Oct 31, 2010 10:03 am
Forum: Volume 118 (11800-11899)
Topic: 11888 - Abnormal 89's
Replies: 11
Views: 6102

Re: 11888 - Abnormal 89's

FOR k : 1...n
make 2 strings 1..k and k+1... n ... now a simple check ...

Go to advanced search