### 358 Don't Have A Cow, Dude

Posted:

**Tue Dec 12, 2006 12:37 pm**The problem statement is ambiguous on output formatting. Moreover, the problem redefines the value of PI. The outcome is that people who use correct equations other than the author did get WA because they make precision errors on other places than the author did. (E.g., once you call sin(), you are implicitly using an other value of PI than the problemsetter said.)

Here:

http://online-judge.uva.es/board/viewto ... hlight=358 is a thread with some people complaining.

Fixes:

Problem statement original:
Problem statement fixed:
I can send you my code that uses a correct PI if you need it to regenerate the output data.

Here:

http://online-judge.uva.es/board/viewto ... hlight=358 is a thread with some people complaining.

Fixes:

Problem statement original:

Code: Select all

```
Express your answer correct to two decimal places. Use PI = 3.14159.
For each test case, output a statement in the format shown in the sample output below.The outputs of two consecutive cases will be separated by a blank line.
```

Code: Select all

```
For each test case, output a statement in the format shown in the sample output below. The number P and the answer shall be rounded to two decimal places using standard output routines. The outputs for consecutive cases shall be separated by a blank line.
Assume that pi=2*acos(0) or pi=2*cos_inverse(0).
```