Page 1 of 2

10751 - Chessboard

Posted: Mon Jul 23, 2007 7:51 pm
by sunny
are my outputs correct?

input:

Code: Select all

10
4
5
6
7
8
9
10
11
12
100
ouput:

Code: Select all

WRONG 

Posted: Mon Jul 23, 2007 9:22 pm
by Jan
My accepted code returns..

Output:

Code: Select all

17.657
28.728
42.627
59.355
78.912
101.296
126.510
154.551
185.421
13978.107
Hope these help.

Posted: Mon Jul 23, 2007 9:45 pm
by sunny
thanx..AC :D

Posted: Sat Nov 24, 2007 9:35 pm
by Leonid
I passed the test case above, but still WA, any suggestions? I tried adding various values of EPS to the answer, but it didn't help... Is there some special extra super duper test case?

Posted: Sun Nov 25, 2007 7:31 pm
by Jan
For n=1 the result is 0.000.

Posted: Sun Nov 25, 2007 10:07 pm
by Leonid
Yeah, that is what I print, but still WA :(
Could you please check this input? :)

INPUT:

Code: Select all

18
4
5
6
7
8
9
10
11
12
100 
120
150
175
200
250
300
1
2
OUTPUT:

Code: Select all

17.657

28.728

42.627

59.355

78.912

101.296

126.510

154.551

185.421

13978.107

20167.510

31572.934

43021.998

56238.829

87975.791

126783.821

0.000

4.000

Posted: Mon Nov 26, 2007 6:09 pm
by Jan
Same output except the blank lines. Don't remember why I omitted the blank lines...

Posted: Sun Dec 02, 2007 11:37 am
by Leonid
I tried to skip blank lines, but still WA :?

Posted: Sun Dec 02, 2007 6:45 pm
by rio
Getting WA too.
Maybe the judge IO might be broken. I had same problem with 10750,10752.
Could someone who got AC with the old server see if it still could get AC ?

-----
Rio

Posted: Wed Dec 05, 2007 11:54 am
by pineapple
I got ac on P10751 when I print 4 digits after the decimal point.
I met precision problem several times in the new version.
I did the same for P10750,but wa...
btw,my 10750 code got ac in the old system.

Posted: Wed Dec 05, 2007 12:00 pm
by Leonid
pineapple wrote:I got ac on P10751 when I print 4 digits after the decimal point.
I met precision problem several times in the new version.
I did the same for P10750,but wa...
btw,my 10750 code got ac in the old system.
Still WA, no matter how many digits I print.

Posted: Wed Dec 05, 2007 2:10 pm
by pineapple
do you get the correct formula?
if your code passed jan's data,you should get AC.
the formula is quite simple and trivial.
if you need,I can send you my ac code by pm or email.

Posted: Wed Dec 05, 2007 2:58 pm
by Leonid
pineapple wrote:do you get the correct formula?
if your code passed jan's data,you should get AC.
the formula is quite simple and trivial.
if you need,I can send you my ac code by pm or email.
I passed Jan's input but WA. Could you PM your AC code?

Posted: Wed Dec 05, 2007 3:29 pm
by pineapple
Leonid,have you got my code?
btw,my two version for P10751,n^2 and nlogn both got wa.
I think there must be something wrong in the special judge for this problem and P216

Posted: Wed Dec 05, 2007 3:52 pm
by rio
Thanks pineapple :)
I've got AC with printing 4 digits after decimal point.

-----
Rio