Search found 26 matches

by fushar
Tue Sep 15, 2009 2:37 am
Forum: General
Topic: A lot of SPAMs -- Admin please react!
Replies: 4
Views: 3211

Re: A lot of SPAMs -- Admin please react!

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

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.
by fushar
Mon Sep 14, 2009 4:48 pm
Forum: General
Topic: A lot of SPAMs -- Admin please react!
Replies: 4
Views: 3211

A lot of SPAMs -- Admin please react!

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...
by fushar
Tue Sep 01, 2009 1:18 am
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9524

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.
by fushar
Mon Aug 31, 2009 12:26 pm
Forum: Volume 110 (11000-11099)
Topic: 11092 - IIUC HexWorld
Replies: 1
Views: 3219

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...
by fushar
Sun Aug 30, 2009 9:14 am
Forum: Volume 112 (11200-11299)
Topic: 11233 - Deli Deli
Replies: 12
Views: 4286

Re: 11233 - Deli Deli

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

Lots of spams here....

Admin, please delete all porn threads here...!! They're very disturbing!
by fushar
Fri Jun 05, 2009 12:00 pm
Forum: Volume 115 (11500-11599)
Topic: 11531 - Solve the Broken Maze
Replies: 15
Views: 6524

Re: 11531 - Solve the Broken Maze

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

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

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

Re: 709 - Formatting Text

My AC code produces:

Code: Select all

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

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?
by fushar
Tue Apr 21, 2009 5:17 pm
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9524

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!!
by fushar
Tue Apr 21, 2009 4:17 pm
Forum: Other words
Topic: ACM PKU Eight Puzzle
Replies: 15
Views: 9524

Re: ACM PKU Eight Puzzle

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

Code: Select all

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

Re: ACM PKU Eight Puzzle

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

Re: ACM PKU Eight Puzzle

How did you do the conversion?

Go to advanced search