## Search found 26 matches

Tue Sep 15, 2009 2:37 am
Forum: General
Replies: 4
Views: 3395

yeah, the spams are very distracting....
Mon Sep 14, 2009 5:54 pm
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 6515

### Re: 11666 Logarithms WA again and agian

Rearranging terms gives us
ln(n)-L = ln(1-x) ; -1 < x < 1

So this problem asks for smallest L such that 0 < e^(ln(n)-L) < 2.
That can be accomplished using binary search on L.
I haven't got AC, though.
Mon Sep 14, 2009 4:48 pm
Forum: General
Replies: 4
Views: 3395

Dear admins, I observe that there are so many spams in this forum. SO MANY. Often the spams take place on outdated post/threads. Almost ALL active topics are SPAMs. If the spams are still like this, this forum won't be convenient anymore.... Please, please fix this! Why don't you implement some capt...
Tue Sep 01, 2009 1:18 am
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9881

### Re: ACM PKU Eight Puzzle

It's just a simple algorithm to convert a permutation into its index (from 0 to 9!-1) and vice versa.
Mon Aug 31, 2009 12:26 pm
Forum: Volume 110 (11000-11099)
Topic: 11092 - IIUC HexWorld
Replies: 1
Views: 3356

### Re: 11092 - IIUC HexWorld

To calculate the position of an arbitrary point on this grid, first we have to know on which layer it resides. Example: 0 is on the 0th layer, 3 is 1st, 26 is 3rd, etc. Notice that number of points on each layer is 6^n, the layer can be computed easily. Now that we know the layer, we determine on wh...
Sun Aug 30, 2009 9:14 am
Forum: Volume 112 (11200-11299)
Topic: 11233 - Deli Deli
Replies: 12
Views: 4926

### Re: 11233 - Deli Deli

just create a map<string, string> representing the irregular plural forms of the words in the description.
Sun Jun 07, 2009 5:29 pm
Forum: Other words
Topic: Lots of spams here....
Replies: 2
Views: 3520

### Lots of spams here....

Fri Jun 05, 2009 12:00 pm
Forum: Volume 115 (11500-11599)
Topic: 11531 - Solve the Broken Maze
Replies: 15
Views: 7128

### Re: 11531 - Solve the Broken Maze

I still don't get it...
What's the DP state for this problem?
Fri May 08, 2009 5:07 pm
Forum: Volume 115 (11500-11599)
Topic: 11534 - Say Goodbye to Tic-Tac-Toe
Replies: 10
Views: 3424

### Re: 11534 - Say Goodbye to Tic-Tac-Toe

Can anyone explain me thoroughly how to solve this problem with grundy number? Please....
Fri May 01, 2009 5:51 pm
Forum: Volume 7 (700-799)
Topic: 709 - Formatting Text
Replies: 5
Views: 4046

### Re: 709 - Formatting Text

My AC code produces:

Code: Select all

``````La la
la
``````
Tue Apr 28, 2009 12:20 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 26777

### Re: why wa 147

I didn't use any floating point in this problem. To read the input, just type:

Code: Select all

``scanf("%d.%d", &note, &coin);``
It's so simple right?
Tue Apr 21, 2009 5:17 pm
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9881

### Re: ACM PKU Eight Puzzle

What a silly bug..
Just changed

Code: Select all

``````if (x != -2)
{
trace(P[x]);
printf("%c", M[x]);
}``````
to

Code: Select all

``````if (P[x] != -2)
{
trace(P[x]);
printf("%c", M[x]);
}``````
and got AC!!!!!!!
Thanks mf!!
Tue Apr 21, 2009 4:17 pm
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9881

### Re: ACM PKU Eight Puzzle

I'm so tired getting WAs, what's wrong with my code?

Code: Select all

``Deleted AC code``
Tue Apr 21, 2009 2:34 pm
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9881

### Re: ACM PKU Eight Puzzle

Hey thank you so much.......!!!!!
Tue Apr 21, 2009 1:40 pm
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9881

### Re: ACM PKU Eight Puzzle

How did you do the conversion?