|
|
вернуться в форумplz help me, i got WA on this test , if someone knows this one help me!. I think it's a test like: 3 0 0 0 3 0 2 and I just adjust my program I did it using integers keeping unique lines (a,b,c) a*x+b*y=c so that gcd(a,b)=1, a>=0. Mistake for WA8 was that for a=0 I did not ensure b>0, i.e. (0,1,1) and (0,-1,1) were considered as different lines. |
|
|