ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1020. Rope

PI
Posted by misha_4ever 14 Nov 2010 12:19
Use PI with at least 3 precision numbers, i.e. 3.141... That was my mistake
Re: PI
Posted by Tkachenko_Roman 12 Aug 2011 14:46
Thanks for good advice. Now I got AC.
Re: PI
Posted by pikavel 13 Mar 2012 12:35
Is there any defined costant for pi in c/с++?
M_PI from math.h works correctly on my computer, but judge's compiler doesn't know it.

Edited by author 13.03.2012 13:18
Re: PI
Posted by Erop [USU] 14 Mar 2012 13:42
I use this:

const double PI = acos(-1.);