Search found 6 matches

by skeeve
Tue Apr 20, 2004 12:07 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 37311

The error is present only in some of the outputs, and th difference is sometimes 0.001 and sometimes -0.001; The only "precision reducing function" I use in my program is hypot when computing r but the errors usually occur in center coordinates or in the las valur (cx^2 + cy^2 -r^2). Most often they ...
by skeeve
Mon Apr 19, 2004 9:10 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 37311

190: getting small (0.001) differences from correct output

Hi, I have written program for 190 and got WA. I have found correct solution (author claims it was accepted by the judge) on the web and compared my output on a random input (about 10000 cases) and found many small differences (like one of the numbers on the output differed by 0.001 - in about 1% of ...
by skeeve
Mon Apr 19, 2004 10:47 am
Forum: Volume 1 (100-199)
Topic: 122 - Trees on the level
Replies: 103
Views: 22039

My ACC program gives a alsightly different output

your output:
5 4 8 11 13 4 7 2 1
not complete
22 33 44
not complete
not complete
4 6 8 11 7
5 4 8 11 13 4 7 2 1
not complete
not complete
not complete
5 6
3
2 3 6 4
4294967295
not complete
65536
65537
2147483648
2147483647
22 22
22 22 3

my output ...
by skeeve
Mon Apr 19, 2004 10:21 am
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 16398

So how do I recognize whether to write "else if" on one line or else and if on separate lines ?
by skeeve
Sun Apr 18, 2004 8:41 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 16398

I have also tried submitting without semicolon after writeln in n=1 case. But what is wrong with the a < c compartion? I have read problem again and again and I don't see it.

It is not redundant (I only did a < b comparsion which failed ....) so what did you mean ?
by skeeve
Sun Apr 18, 2004 4:25 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 16398

110 (meta loopless sorts): WA

Hi, I have tried to submit problem 110 but got WA
I have tested my program, compiled pascal outputs, tried whether they work on all permutations (and they do), I have exactly n! writeln statements in my outputted program and exactly n!-i if statements. Could anyone help me find what's wrong ?
My ...

Go to advanced search