Search found 11 matches

by lucindo
Mon Jul 14, 2003 4:34 pm
Forum: Volume 105 (10500-10599)
Topic: 10505 - Montesco vs Capuleto
Replies: 73
Views: 48004

windows2k,

In your DFS code seems that you aren't marking all nodes in the non-bipartite components. Try without recurtion.
by lucindo
Sun Jul 06, 2003 6:02 pm
Forum: Volume 105 (10500-10599)
Topic: 10511 - Councilling
Replies: 26
Views: 16319

How to build the network?

Hi,

I was thinking about this problem but could not find a way to build the network with the problem constraints to find the matching.

Could someone give me a hint in how to do this??
by lucindo
Wed Jul 02, 2003 5:50 pm
Forum: Volume 105 (10500-10599)
Topic: 10505 - Montesco vs Capuleto
Replies: 73
Views: 48004

Hello windows2k,

The output of my program for this input is:

Code: Select all

0
1
1
I used the algorithm that witto wrote above.
by lucindo
Wed Jun 25, 2003 11:36 pm
Forum: Volume 105 (10500-10599)
Topic: 10505 - Montesco vs Capuleto
Replies: 73
Views: 48004

My guess

My accepted program outpus '0' for this input
by lucindo
Sun May 25, 2003 7:59 pm
Forum: ACM ICPC Archive Board
Topic: Problems 2000-2720 .....
Replies: 15
Views: 5509

How to Submit?

turuthok,

I tried to submit 'Building Bridges' and got "Can't be Judged".

I used Submit-o-Matic, with Problem # 2721. (from acm.uva.es/archive).

I saw that this problem was submited at last 11 times!
( http://acm.uva.es/cgi-bin/OnlineJudge?ProblemStat:2721 )

I wanna know how submit these ...
by lucindo
Tue May 13, 2003 1:54 am
Forum: Algorithms
Topic: bridge in O(E) time?
Replies: 10
Views: 5051

O notation

I think Christopher is right. Lets look the definition of O notation.

f(x) = O(g(x)) if exists constant c and n0 > 0 such tath f(x) <= c.g(x) for any n >= n0.

Now lets see how many edges exists in a graph. In a complete graph with n vertex there are at most C(n, 2), or n choose 2, edges.

In that ...
by lucindo
Sun Jan 12, 2003 2:25 pm
Forum: Volume 103 (10300-10399)
Topic: 10352 - Count the eWords
Replies: 30
Views: 14808

Thank you Adrian

Thank's Adrian for the C++ tip. I got AC now.
by lucindo
Sat Jan 11, 2003 11:24 pm
Forum: Volume 103 (10300-10399)
Topic: 10352 - Count the eWords
Replies: 30
Views: 14808

What's wrong

My code works fine for all examples in this topic but I still get WA. Can any one please tell me what's wrong??

[cpp]
#include <iostream>
#include <string>
#include <map>

using namespace std;

int main () {
int se = 0;

while (!cin.eof()) {
string s, os;
map<string, int> pal;
map<string ...
by lucindo
Tue Sep 10, 2002 9:43 pm
Forum: Volume 5 (500-599)
Topic: 523 - Minimum Transport Cost
Replies: 44
Views: 16991

Input...

First read a line to find out the number 'n' of vertex. After that, you must read n^2 numbers, ignoring aditionals or unexpected '\n' :x . Then, read line by line to get the source and destination until a blank line....

Be caerful with "10-1" without space...

This is a multiple input problem too ...
by lucindo
Mon Sep 09, 2002 2:25 pm
Forum: Volume 5 (500-599)
Topic: 523 - Minimum Transport Cost
Replies: 44
Views: 16991

The Problem: Input

I finally solved the problem.... :D My program was working fine but reading the input wasn
by lucindo
Thu Sep 05, 2002 2:55 am
Forum: Volume 5 (500-599)
Topic: 523 - Minimum Transport Cost
Replies: 44
Views: 16991

523 - Minimum Transport Cost

I'm trying to solve the problem 523 using djikstra algorithm. What I should print when there is no way from c to d???

Using Floyd I got WA too.

I read the comments of the problem and I thing my program is working fine for the (ugly) input.

Anyone can send me a input/output sample???

Thanks...

Go to advanced search