Search found 8 matches

by backslash null
Sun Nov 21, 2004 12:07 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65146

My output is:

1 2 3 4 5 6 7 8 9 10 11 12 1 2
14

and got AC,

good luck;
by backslash null
Wed Nov 10, 2004 2:49 pm
Forum: C++
Topic: Long Long doesn't support
Replies: 3
Views: 2421

Hi,
u can alsso use type cast like this:
a=(long long) 4000000000;
printf("%lld",a);
by backslash null
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:)
by backslash null
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 ...
by backslash null
Thu Nov 04, 2004 2:26 pm
Forum: Volume 107 (10700-10799)
Topic: 10733 - The Colored Cubes
Replies: 14
Views: 5519

this problem is easier than it seems.
you don't have to any `lemma' to solve this problem.just think of a simple combinatorial formula.
after u find that try to solve it manualy and you get a polynomial of n lie this:
(n^6 + ?*n^4 + ... +8*n^?)/? :D :evil:
good luck.

8)
by backslash null
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.
:cry:

thanx.
shahiN_reloadeD
by backslash null
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 ?
:-?
by backslash null
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.

Go to advanced search