10059 - The Hazard of CSE Department!

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

Moderator: Board moderators

Post Reply
Astrakan
New poster
Posts: 24
Joined: Sun Nov 03, 2002 12:18 pm
Location: Sweden

10059 - The Hazard of CSE Department!

Post by Astrakan » Mon Nov 25, 2002 12:52 am

In the description of the output of problem 10059, it says that if there is more than one equation that satisfies an input, then the equations should be printed in "ascending order of their slopes".

However, looking at the sample output, the equations are not sorted by slope (in my opinion). The first output line is 1*x-1*y+0=0, i.e. y=x, which has a slope of 1, and the second output line is 1*x+1*y+0=0, i.e. y=-x, which has a slope of -1, according to the definition slope=dy/dx.

Also, with an equation like 1*x+0*y+0=0, i.e. x=0, the line is vertical and has no slope. How should such an equation be sorted if it is together with, for example, 1*x-1*y+0=0 (x=y)?

Please explain what is meant by "ascending order of their slopes".

Post Reply

Return to “Volume 100 (10000-10099)”