Search found 7 matches

by dserrano
Wed Nov 05, 2003 2:49 am
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 43033

10099 - Disjkstra

Can I solve the problem 10099 using a variation of Dijkstra algorithm?
In each step, instead of looking for the lowest cost, I look for the highest minimum cost of the whole path.
I'm in the right way, or not :( ?
by dserrano
Sat Sep 13, 2003 2:29 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83831

Thanks!!
I got AC, but with PE.

What may be??
I output results this way:

[cpp]
if (bisiesto(numero))
{
cout << "This is leap year." << endl;
bis = true;
fiesta=true;
}

if (huluculu(numero))
{
cout << "This is huluculu festival year." << endl;
fiesta = true;
}

if (bis && bulukulu ...
by dserrano
Wed Sep 10, 2003 11:32 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83831

[quote="10153EN"]I solved this problem by storing the year number (which can be very large) in an integer array. Then check this year with some number theory.

For example, if a numbe if divible by 3, then the sum of all of it's digits is ....[/quote]

Excellent idea!!
What's the rule for knowing if ...
by dserrano
Tue Sep 02, 2003 2:13 am
Forum: Volume 4 (400-499)
Topic: 451 - Poker Solitaire Evaluator
Replies: 18
Views: 6818

[quote="Adrian Kuegel"]Read this:
Straight: the five cards of the hand may be sorted on rank so that an unbroken sequence of 5 ranks is formed and the hand does not qualify for any of the following.
--> There can be cycle through Ace. <--
That is AC, 2H, 4D, 3H, 5S forms a straight, as does JH, XD ...
by dserrano
Sat Aug 09, 2003 2:40 am
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 21609

kmhasan wrote:Try the following input:

Code: Select all

1
aaaaaaaaaaaaaa
I believe that the output should be one line, your program will probably produce factorial(14) lines of output.
with that input, output should be:

Code: Select all

a


or

Code: Select all

aaaaaaaaaaaaaa
(only once)?
by dserrano
Wed Sep 18, 2002 9:57 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116567

Can it happen with long integers?
I
by dserrano
Tue Sep 17, 2002 2:46 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116567

prob 102. Is there any trick on input data?

I

Go to advanced search