Page 1 of 1

Posted: Sat Jan 19, 2002 7:19 pm
by ..
Can anyone explain this problem to me?

There is sentence in question:
"All pairs of X, Y values will be inputted and the lowest and highest needs to be found to determine scaling values. The increment for each row or column will be based on 20 positions for the Y axis and 12 for the X axis."

What I think this means, is that we need to guess the increment value OURSELVES,
for example if max y is 100, min y is 0, than the increment is 5


However, there are also following input provide:
1st line low X value and X axis increment
2nd line low Y value and Y axis increment

Increment is PROVIDED here, then how should I explain the previous senetence?
Thanks in advance~~



<font size=-1>[ This Message was edited by: .. on 2002-01-19 18:21 ]</font>

Posted: Thu Jan 31, 2002 7:30 pm
by ..
I got Accepted now~~
Don't think too complex. Just use the low X/Y value and the increment value given.

The trick is:
there are some points out of range, ignore them.........

728 - I'm confused

Posted: Sun Dec 04, 2005 5:28 pm
by Dominik Michniewski
I'm confused a bit by problem specification. Could anyone help me understanding it?

From problem description:

Code: Select all

INPUT: (...)
1st line 		 low X value and X axis increment 
2nd line 		 low Y value and Y axis increment
(...)

OUTPUT:
(...) All pairs of X, Y values will be inputted and the lowest and highest needs to be found to determine scaling values. (...)
So low values for X and Y are given in input or are calculated from x,y pairs? What about maximal values?

Best regards
DM

Posted: Mon Sep 04, 2006 8:11 am
by Erik
Thanks, the points out of range tricked me.
Now I got AC.

728 - Scatter Point Plot

Posted: Tue Apr 10, 2007 2:22 pm
by shakil
Why i get PE IN this problem .....
please help.......
thank in advance................

Code: Select all


Thanks


Posted: Thu Apr 12, 2007 8:59 am
by ExUCI
I just got AC few minutes ago, and the problem in your code is that you don't center the numbers well, the operations you make to determine the amount of spaces before a number are wrong.

Remember remove your code after AC

Posted: Fri Apr 13, 2007 9:29 am
by shakil
Thanks ExUCI. I got AC with your help.
Thanks again.

Posted: Thu Jul 26, 2007 3:32 am
by rio
Getting WA.. I'm confused too.

I have the same question as Dominik.

Thanks in advance.
----
Rio

Posted: Sun Aug 05, 2007 3:42 pm
by Moha
Would you please post some testcase or can I send you my code and test its output with yours?

I got PE and I have testes several test case:
  • 2

    200 100
    0 50
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    101,22
    100,23
    100,0
    100,3
    649,0
    649,3
    647,2
    500,85
    206,21
    325,43
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    129,19
    501,83

    100 50
    0 5
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    100,20
    101,22
    100,23
    100,0
    100,3
    649,0
    649,3
    647,2
    500,85
    206,21
    325,43
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    612,8
    129,19
    501,83

Code: Select all

  950:
  900:
  850:
  800:
  750:
  700:
  650:
  600:
  550:
  500:
  450:
  400:
  350:
  300:
  250:
  200:
  150:
  100:                   2
   50:         1
    0:   171                 159
     +----+----+----+----+----+----+----+----+----+----+----+----+
         200  300  400  500  600  700  800  900 1000 1100 1200 1300

   95:
   90:
   85:                                            2
   80:
   75:
   70:
   65:
   60:
   55:
   50:
   45:                             1
   40:
   35:
   30:
   25:    1
   20:  1321   1    1
   15:
   10:                                                     156
    5:    1                                                      1
    0:    1                                                      2
     +----+----+----+----+----+----+----+----+----+----+----+----+
         100  150  200  250  300  350  400  450  500  550  600  650

Posted: Sun Aug 05, 2007 6:51 pm
by rio
I'm getting WA.
How did you handle "out of range" cases like below ?

Code: Select all

1

100 50
15 5
0,5
701,18
Thanks in advance.
----
Rio

Posted: Mon Dec 17, 2007 3:04 am
by Jan
rio wrote:I'm getting WA.
How did you handle "out of range" cases like below ?

Code: Select all

1

100 50
15 5
0,5
701,18
Thanks in advance.
----
Rio
I think there are no such cases. But are you sure your priting method is correct?

The sample is not correct. The problem states 'Print Y-values right-justified in a field of width 4' but in the sample output the Y-valus are given in a field width of 5.

Try the cases...

Input
Output

Hope these help.