|
|
вернуться в форумAbout Digit Pi Hello! Sorry for my language. I have not found in C++ (Microsoft Visual Studio 2008) function for digit Pi, and input it self - "float Pi=3.1415926" and i recived WA in test 3, but when i use Pi=3.141_!6!_926 (It's wrong!) I got Accepted! What you think about this? Re: About Digit Pi you can use acos(-1.0) but it's exist you can find const M_PI in <math.h> Re: but it's exist M_PI is not defined under Ansi C or the judge. Re: but it's exist Послано OpenGL 16 янв 2009 19:02 if you write #define _USE_MATH_DEFINES #include <math.h> then you can use M_PI
|
|
|