Search found 10 matches

by crackerwang
Wed Apr 08, 2009 6:46 am
Forum: Volume 115 (11500-11599)
Topic: 11594 - All Pairs Maximum Flow
Replies: 2
Views: 1981

11594 - All Pairs Maximum Flow

can anyone give me a hint?

and there is a another similar problem in the warningup II which I also do not know how to solve it.
thx in advance!
by crackerwang
Wed Dec 17, 2008 5:00 pm
Forum: Volume 115 (11500-11599)
Topic: 11555 - Aspen Avenue
Replies: 6
Views: 2544

Re: 11555 - Aspen Avenue

SerailHydra wrote:My solution is DP, and runs O(N^2)
can U tell me more details?
I do not know how to dp.
THX
by crackerwang
Tue Aug 05, 2008 7:27 pm
Forum: Volume 114 (11400-11499)
Topic: 11476 - Factorizing Large Integers
Replies: 17
Views: 12317

Re: 11476

My code doesn't use Brent's improvement just normal Pollard Rho method.
Robert Gerbicz's solution is much faster than mine.

First I wanted to make the test data little more tight so only the Brent versions could pass, but later
stopped from doing that.

I also use the normal Pollard Rho,but i ...
by crackerwang
Thu Mar 13, 2008 4:19 pm
Forum: Volume 114 (11400-11499)
Topic: 11406 - Best Trap
Replies: 8
Views: 4398

sohel wrote:There is no use of N. I first got WA when I considered that the cone has to be strictly inside the room. But later commenting out that part, the code got AC.
I still WA!!
is there any trick? or maybe my agorithm is wrong?
can you give me any hints?
THX!!
by crackerwang
Mon Mar 03, 2008 7:22 am
Forum: Volume 114 (11400-11499)
Topic: 11406 - Best Trap
Replies: 8
Views: 4398

There must be. I also first assumed that the result is regardless of N, and I got WA. Notice that the net is conical, so I think you can place it only so that it is wholly included in the room. Consider the input
100 10 3
0 0
0 1
49 49

I presume the result to be 2, since no way you can cover ...
by crackerwang
Mon Feb 25, 2008 2:40 pm
Forum: Volume 114 (11400-11499)
Topic: 11406 - Best Trap
Replies: 8
Views: 4398

and is there any use of the N?
by crackerwang
Mon Feb 25, 2008 2:33 pm
Forum: Volume 114 (11400-11499)
Topic: 11406 - Best Trap
Replies: 8
Views: 4398

11406 - Best Trap

I think that: if the answr is m, so there must be a circle who's radius is smaller than r and there are three or 2 point on it,and m point on or in it.
in the condion of 2 point the center of the circle is the mid of the 2 point

is above right?
but i got a WA?somebody help!
by crackerwang
Fri Jan 25, 2008 5:55 pm
Forum: Volume 113 (11300-11399)
Topic: 11392 - Binary*3 Type Multiple
Replies: 14
Views: 6916

but i want to know is any num which can'ti div by 2 or 5 have a mutiple like 111..1111
by crackerwang
Sun Jan 20, 2008 9:50 am
Forum: Volume 113 (11300-11399)
Topic: 11396 - Claw Decomposition
Replies: 12
Views: 7424

NO
NO
.

Although none of your graphs would appear in the test-data. because the problem statement says all graphs has only vertices of degree 3.

HINT: All vertices has degree 3. So, If a vertex is the center of a claw, what can we conclude about its neighbors? What about the neighbors of a vertex ...
by crackerwang
Sun Jan 20, 2008 8:32 am
Forum: Volume 113 (11300-11399)
Topic: 11396 - Claw Decomposition
Replies: 12
Views: 7424

11396 - Claw Decomposition

I did not understand the define of claw.
so is the following graph a claw?
the first graph
1 2
1 3
1 4
4 5
4 6

the second graph
1 2
1 3
1 4
2 5
3 6
4 7

and can anyone give me some hint of the algorithm?
thx. :o

Go to advanced search