Search found 146 matches

by hank
Sun Aug 24, 2003 3:30 pm
Forum: Volume 103 (10300-10399)
Topic: 10380 - Shogi Tournament
Replies: 10
Views: 4848

10380 - Shogi Tournament

Thanks in advance. :P
by hank
Sun Aug 24, 2003 7:20 am
Forum: Algorithms
Topic: Help about MAX Flow
Replies: 8
Views: 4227

Whinii F. wrote:To name few problems come to mind..

10380 Shogi Tournament <=why do you think it is a maxflow problem?

Of course there should be more. :)
Hi,Whinii F..
Can you give me some hints about problem 10380?
thanks in advance.
by hank
Tue Aug 19, 2003 11:33 am
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 17584

yeah...I already solved the problem and got accepted!!
I use recursion and some tricks to avoid Time Limit Exceeded.
by hank
Sat Aug 16, 2003 6:05 am
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 17584

Hi, I still can't figure out the problem. My method is using recursion. and I always get TLE... (but I think it is fast enough) The following is my code. I hope you can give me some tips. Thanks in advance. [c]#include "stdio.h" #include "stdlib.h" #include "string.h" #define MAX 200 int n,stick[MAX...
by hank
Sat Jul 26, 2003 3:15 pm
Forum: Volume 103 (10300-10399)
Topic: 10307 - Killing Aliens in Borg Maze
Replies: 54
Views: 17627

Re: faster algorithm

I use bfs to get the distance btw them.and then i construct kruskal mst with them.But i recieved time limit exceed. I get accepted with my kruskal implementation in other mst problems.Is there any other faster algorithm to find the shortest distance in a maze.Help me... I think Prim algorithm is be...
by hank
Sat Jul 26, 2003 9:32 am
Forum: Other words
Topic: What is "USACO"?
Replies: 6
Views: 1626

What is "USACO"?

Hello!!
Can you tell me what is "usaco"?
Is it a kind of online judge?
How can I use it?
:lol:
Thanks in advance.
by hank
Sat Jul 26, 2003 6:52 am
Forum: Bugs and suggestions
Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
Replies: 62
Views: 4920

200 Rare Order [Topological Sort]

I got WA,and I still cannot find any wrong in my code. please help me! Thanks!! [c]#include "stdio.h" #include "string.h" int mark[26],map[26][26],degree[26]; void main() { char arr[27],lastarr[27]; int i,j,k,n,len1,len2,len; memset(mark,0,sizeof(mark)); memset(map,0,sizeof(map)); memset(degree,0,si...
by hank
Wed Jul 23, 2003 7:57 am
Forum: Algorithms
Topic: What is "Bipartite Match" ?
Replies: 4
Views: 2634

What is "Bipartite Match" ?

Can you tell me what is Bipartite Match?
and which of the problems in the volume can be solved by the algorithm?
Thank many. :D
by hank
Wed Jul 23, 2003 7:47 am
Forum: Algorithms
Topic: about Max Flow :=)
Replies: 0
Views: 1294

about Max Flow :=)

Is there any problem can be solved by Max Flow algorithm in this website?
(as many as possible)

Thanks a lot :D :-)
by hank
Tue Jul 22, 2003 12:32 pm
Forum: Volume 104 (10400-10499)
Topic: 10460 - Find the Permuted String
Replies: 8
Views: 6645

erfan wrote:Yah i also found precision error.How u overcome it. I try with long double but not get...
Try to use "long long int"
I think it is a better idea.
by hank
Tue Jul 22, 2003 10:35 am
Forum: C
Topic: something about "long double"
Replies: 5
Views: 2453

It is included in the "DevC++".
by hank
Tue Jul 22, 2003 8:22 am
Forum: C
Topic: something about "long double"
Replies: 5
Views: 2453

something about "long double"

I don't know why the following code can't work with the Mingw compiler.
[cpp]
#include "stdio.h"
#include "iostream.h"
void main()
{
long double p;
p=1;
printf("%Lf\n",p); //it prints '0.0000' , why?
cout<<p<<endl; //it prints '1.0'
}[/cpp]
:D
by hank
Mon Jul 21, 2003 4:05 pm
Forum: Volume 103 (10300-10399)
Topic: 10307 - Killing Aliens in Borg Maze
Replies: 54
Views: 17627

10307

I cannot understand why the answer of the following input is " 11 "? ##### #AAA### # A# # S ### # # #AAA### ##### and why it said , "That is, if the original group walks five steps, then splits into two groups each walking three steps, the total distance is 11=5+3+3. " ? please help me understand th...
by hank
Mon Jul 07, 2003 6:54 am
Forum: C++
Topic: _int64 ( :-? )
Replies: 6
Views: 2514

Hi everybody!
Can you tell me how to use "printf" to print a _int64 value?
(I use VisualC++ 6.0 and I don't have bc++,so I can't use "long long" data type)
Thanks a lot!! :P
by hank
Mon Jul 07, 2003 6:46 am
Forum: C
Topic: How to make it in C? (me again:P)
Replies: 4
Views: 2482

You can try this code... :P
[c]
#include "stdio.h"
#include "conio.h"
void main()
{

int k ;
while( ( k=getche() )!='\n' ){
//..........
}
}
[/c]

Go to advanced search