hey that's rite...
then rio means
0 1
1 0
if the ans is 2
then
are two different undirected edges.....
that means there can many edges b/w the same two nodes....
so that resulting in first bactracking b/w the nodes...
Search found 47 matches
- Tue Feb 13, 2007 5:24 pm
- Forum: Volume 5 (500-599)
- Topic: 539 - The Settlers of Catan
- Replies: 22
- Views: 8523
- Fri Feb 09, 2007 10:17 pm
- Forum: Volume 5 (500-599)
- Topic: 539 - The Settlers of Catan
- Replies: 22
- Views: 8523
- Tue Feb 06, 2007 6:22 am
- Forum: Volume 5 (500-599)
- Topic: 539 - The Settlers of Catan
- Replies: 22
- Views: 8523
539 why wa ..plz help
hell guys ..
can anybody tell why wa.. i know backtrackin is quite okay....
here's my code....
can anybody tell why wa.. i know backtrackin is quite okay....
here's my code....
Code: Select all
- Mon Feb 05, 2007 1:18 pm
- Forum: Volume 5 (500-599)
- Topic: 524 - Prime Ring Problem
- Replies: 74
- Views: 21385
compile error --- is the judge alrigth .....
both of problems 524 & 539 are just workin fine g++ compiler of mine after a while i m solving in acm .... its changed now i guess.... here's my code for 524 .. plz tell me guys why compile error.... # include <iostream> # include <vector> # include <string> # include <cstring> # include <algori...
- Tue Dec 19, 2006 6:12 pm
- Forum: Algorithms
- Topic: acm regional coimbatore problems a -how to solve
- Replies: 14
- Views: 7472
acm regional coimbatore problems a -how to solve
this problem i know it is bactrackinh but still modulo it in circular way is bit
difficult for me so plz some body tell me how to go about it
here is the link
http://www.amrita.edu/icpc/2006/Problems-Onsite.pdf
difficult for me so plz some body tell me how to go about it
here is the link
http://www.amrita.edu/icpc/2006/Problems-Onsite.pdf
- Sat Nov 04, 2006 8:09 pm
- Forum: Other words
- Topic: regionals..
- Replies: 8
- Views: 3554
- Thu Nov 02, 2006 2:28 pm
- Forum: Other words
- Topic: regionals..
- Replies: 8
- Views: 3554
- Wed Nov 01, 2006 10:05 pm
- Forum: Other words
- Topic: regionals..
- Replies: 8
- Views: 3554
according icpc rules r we supposed hav 3 mandatory members of team or is two member is suffient .. could u plz let us no on that.. since we hav ur VTU exams in the same week its very tough for the coach to come... since we may hav ur lab exams in same week..plz let me no this brother// thanks in adv...
- Wed Nov 01, 2006 4:59 pm
- Forum: Other words
- Topic: regionals..
- Replies: 8
- Views: 3554
regionals..
i think we made it in to regionals at coimbatore india.. if we dont get selected to world finals .. would we get atleast a certificate for travelling so far..or a T-shirt.. while we hav our graduate exams in the same week.. just out of curiosity could some previous regional finalist tell me about th...
- Fri Aug 18, 2006 5:52 pm
- Forum: Algorithms
- Topic: distinct substring
- Replies: 1
- Views: 1726
distinct substring
hi i think this is bytecode 06 problem..
i getting sol for this O(n^3),i heard that we hav sol in method called
suffix array ,i didn't understand how to get O(n^2) using this method
could somebody plz tell me how..
i getting sol for this O(n^3),i heard that we hav sol in method called
suffix array ,i didn't understand how to get O(n^2) using this method
could somebody plz tell me how..
- Fri Aug 04, 2006 2:31 pm
- Forum: Volume 7 (700-799)
- Topic: 762 - We Ship Cheap
- Replies: 51
- Views: 21713
762 bfs
hi guys i hav been getting wa , for this problem for quite some time its just a simple bfss.. but in problem there is no mention of number of cities(nodes) could some body tell me wat's wrong in code.. plx x give me some test cases...... :-? #include <iostream> #include <string> #include <vector> #i...
- Wed Jul 26, 2006 7:17 am
- Forum: Algorithms
- Topic: LCS again...help
- Replies: 4
- Views: 2191
- Wed Jul 26, 2006 7:07 am
- Forum: Algorithms
- Topic: LCS again...help
- Replies: 4
- Views: 2191
LCS again...help
hi guys.. could any body tell me about how generate all possible LCS b/w two strings ..i hav tried backtrack sol which didnt work ..probably wasted around 3 days trying to find the alll possible lcs b/w string ... (Firstly is it possible without trying all possible brute approach..i think not..)(i s...
- Tue Jul 04, 2006 4:29 pm
- Forum: Algorithms
- Topic: Combination and Permutation
- Replies: 1
- Views: 1315
- Wed May 24, 2006 3:25 am
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 27733
147 wa plz help...
hi guys i m getting wa for 147...
i just dont no whether the formatting of o/p is proper or not....
here's my code ...
i just dont no whether the formatting of o/p is proper or not....
here's my code ...
Code: Select all
code deleted got it accepted...