10751 - Chessboard

All about problems in Volume 107. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

sunny
Experienced poster
Posts: 124
Joined: Sun Sep 11, 2005 10:22 pm
Location: Civil-BUET

10751 - Chessboard

Post 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 
Last edited by sunny on Mon Jul 23, 2007 9:46 pm, edited 1 time in total.
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post 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.
Ami ekhono shopno dekhi...
HomePage
sunny
Experienced poster
Posts: 124
Joined: Sun Sep 11, 2005 10:22 pm
Location: Civil-BUET

Post by sunny »

thanx..AC :D
Leonid
Experienced poster
Posts: 146
Joined: Thu Dec 22, 2005 5:50 pm
Contact:

Post 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?
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan »

For n=1 the result is 0.000.
Ami ekhono shopno dekhi...
HomePage
Leonid
Experienced poster
Posts: 146
Joined: Thu Dec 22, 2005 5:50 pm
Contact:

Post 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
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan »

Same output except the blank lines. Don't remember why I omitted the blank lines...
Ami ekhono shopno dekhi...
HomePage
Leonid
Experienced poster
Posts: 146
Joined: Thu Dec 22, 2005 5:50 pm
Contact:

Post by Leonid »

I tried to skip blank lines, but still WA :?
rio
A great helper
Posts: 385
Joined: Thu Sep 21, 2006 5:01 pm
Location: Kyoto, Japan

Post 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
pineapple
Learning poster
Posts: 57
Joined: Fri Nov 03, 2006 3:33 pm

Post 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.
Leonid
Experienced poster
Posts: 146
Joined: Thu Dec 22, 2005 5:50 pm
Contact:

Post 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.
pineapple
Learning poster
Posts: 57
Joined: Fri Nov 03, 2006 3:33 pm

Post 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.
Leonid
Experienced poster
Posts: 146
Joined: Thu Dec 22, 2005 5:50 pm
Contact:

Post 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?
pineapple
Learning poster
Posts: 57
Joined: Fri Nov 03, 2006 3:33 pm

Post 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
rio
A great helper
Posts: 385
Joined: Thu Sep 21, 2006 5:01 pm
Location: Kyoto, Japan

Post by rio »

Thanks pineapple :)
I've got AC with printing 4 digits after decimal point.

-----
Rio
Post Reply

Return to “Volume 107 (10700-10799)”