Hi!! Martin
you are right , I have a bug in my code, thanks for that
Thanks in advance
Keep posting.
Search found 115 matches
- Sat Sep 02, 2006 9:47 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11078 - Open Credit System
- Replies: 12
- Views: 8147
- Sat Sep 02, 2006 6:05 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11078 - Open Credit System
- Replies: 12
- Views: 8147
11078 - Open Credit System
Hi to all!
I getting WA in this one mi algo is:
if i < j then "i" is senior and j is junior
so I take the diference of S_i - Min ( S_J ) where i<j<=n
then take the maximun of this diferences
Thanks in advance
I getting WA in this one mi algo is:
if i < j then "i" is senior and j is junior
so I take the diference of S_i - Min ( S_J ) where i<j<=n
then take the maximun of this diferences
Thanks in advance
- Fri Jul 07, 2006 3:05 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 133
- Views: 46595
Hi !! yin_yang2k Is good see that your problem is fine, for the problems of the input in c++ I used a mix between C and C++ for the read input because I consider that C has better read and out that C++, sometimes is uncorfortable write cout<< and << and <<...... etc. but is a opinion very personal, ...
- Thu Jul 06, 2006 8:42 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 133
- Views: 46595
- Thu Jul 06, 2006 8:39 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 133
- Views: 46595
Hi !! yin_yang2k I will go to post mi algorithm for take the input cause the algorithm for get the answer is easy, is just take the components conex. int read_graph(graph *g) { int i,j,p,x,y,res1; char c[10],*res2;//this is for take the input initialize_graph(g);//fluhs the graph gets(c);//get the l...
- Sun Feb 12, 2006 7:48 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 133
- Views: 46595
Hi!! Oh Se Jun I post some tests cases in a previous post, did you saw that post ?
if you dont, the link
http://online-judge.uva.es/board/viewtopic.php?t=6354
if you dont, the link
http://online-judge.uva.es/board/viewtopic.php?t=6354
- Sat Dec 31, 2005 12:56 am
- Forum: Volume 109 (10900-10999)
- Topic: 10926 - How Many Dependencies?
- Replies: 33
- Views: 18927
- Fri Dec 30, 2005 4:15 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10926 - How Many Dependencies?
- Replies: 33
- Views: 18927
Hi ! daveon thanks for your pront answer here are a seudo code commented about mi algo I hope that you understead the algo is very simple just iniciliation of arrays and then do dfs, int Deps[102]; Graph graph; int DFS(int v){ if(Deps[v] != -1) return Deps[v]; int sum = 0; // graph[v].size() give th...
- Thu Dec 29, 2005 1:41 am
- Forum: Volume 109 (10900-10999)
- Topic: 10926 - How Many Dependencies?
- Replies: 33
- Views: 18927
- Wed Dec 28, 2005 2:34 am
- Forum: Volume 109 (10900-10999)
- Topic: 10926 - How Many Dependencies?
- Replies: 33
- Views: 18927
10926 - How Many Dependencies?
Hi !!!! to all I stuck in this problem please help me I use DFS to count the value for every vertex. so I call DFS for every vertex, but I not count the same vertex twice.then I memorize every count for vertex that I used in DFS. finally when I count the value for all vertex , I find the maximum val...
- Wed Sep 28, 2005 1:57 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10068 - The Treasure Hunt
- Replies: 31
- Views: 8979
- Wed Sep 21, 2005 8:41 pm
- Forum: Algorithms
- Topic: Isomorfics graphs
- Replies: 3
- Views: 1852
- Fri Sep 09, 2005 1:04 pm
- Forum: Algorithms
- Topic: Isomorfics graphs
- Replies: 3
- Views: 1852
Isomorfics graphs
Hi Everyone, I wanted to know everything about How to check if two given graphs are isomorfics.
If there one algo please post seudocode here or mail me, if there one link that can help me please post here, the proposite is implement one rutine for this problem
Thanks in advance
If there one algo please post seudocode here or mail me, if there one link that can help me please post here, the proposite is implement one rutine for this problem
Thanks in advance
- Fri Apr 29, 2005 11:37 pm
- Forum: Volume 1 (100-199)
- Topic: 190 - Circle Through Three Points
- Replies: 126
- Views: 35894
Hi emotional blind !! try with this input
in:
out:
Hope it helps
Keep posting !!
in:
Code: Select all
5 5 4 7 16 5
Code: Select all
(x - 10.500)^2 + (y - 9.000)^2 = 6.801^2
x^2 + y^2 - 21.000x - 18.000y + 145.000 = 0
Keep posting !!
- Tue Mar 22, 2005 12:29 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 41420