My output is:
1 2 3 4 5 6 7 8 9 10 11 12 1 2
14
and got AC,
good luck;
Search found 8 matches
- Sun Nov 21, 2004 12:07 pm
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 65146
- Wed Nov 10, 2004 2:49 pm
- Forum: C++
- Topic: Long Long doesn't support
- Replies: 3
- Views: 2421
- Wed Nov 10, 2004 2:23 pm
- Forum: Algorithms
- Topic: I'm collecting cool graph algorithms problems
- Replies: 13
- Views: 6887
hi
here is a usefull like to both graph algos and examples of each algo:
http://www.comp.nus.edu.sg/~stevenha/pr ... raph1.html
good luck in ur talk:)
http://www.comp.nus.edu.sg/~stevenha/pr ... raph1.html
good luck in ur talk:)
- Wed Nov 10, 2004 2:16 pm
- Forum: Algorithms
- Topic: how to check efficiently if an edge is a BRIDGE
- Replies: 9
- Views: 5422
An O(E) approach
Hi,
Here is an O(E) algo to find bridges,
first we define low as follows:
low =min(d ,min(low[x] | x is a child of w),min(d[x] | E(u,x) is a back edge);
you can calculate low with a recursive function just like DFS with O(E),
then check for every vertex if its low ==d .
and an edge is a bridge if ...
Here is an O(E) algo to find bridges,
first we define low as follows:
low =min(d ,min(low[x] | x is a child of w),min(d[x] | E(u,x) is a back edge);
you can calculate low with a recursive function just like DFS with O(E),
then check for every vertex if its low ==d .
and an edge is a bridge if ...
- Thu Nov 04, 2004 2:26 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10733 - The Colored Cubes
- Replies: 14
- Views: 5519
- Sun Oct 31, 2004 3:47 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10754 - Fantastic Sequence
- Replies: 16
- Views: 14695
10754 - Fantastic Sequence
Hi very body,
any idea to solve this problem fast.
I used some kind of DP but got TLE.
thanx.
shahiN_reloadeD
any idea to solve this problem fast.
I used some kind of DP but got TLE.

thanx.
shahiN_reloadeD
- Sun Oct 10, 2004 2:29 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10727 - Practice
- Replies: 10
- Views: 4374
is sample output correct
isn't it more accurate if u select a=0 and b=0.25 ?


- Mon Oct 04, 2004 10:52 am
- Forum: Volume 107 (10700-10799)
- Topic: 10727 - Practice
- Replies: 10
- Views: 4374
10727 - Practice
Hi every body any idea about problem 10727,
I don't understand the problem
....
thank you.
I don't understand the problem

thank you.