bkrtoni's blog

By bkrtoni, history, 7 years ago, In English
#if defined(_USE_MATH_DEFINES) && !defined(_MATH_DEFINES_DEFINED)
#define _MATH_DEFINES_DEFINED

/* Define _USE_MATH_DEFINES before including math.h to expose these macro
 * definitions for common math constants.  These are placed under an #ifdef
 * since these commonly-defined names are not part of the C/C++ standards.
 */

/* Definitions of useful mathematical constants
 * M_E        - e
 * M_LOG2E    - log2(e)
 * M_LOG10E   - log10(e)
 * M_LN2      - ln(2)
 * M_LN10     - ln(10)
 * M_PI       - pi
 * M_PI_2     - pi/2
 * M_PI_4     - pi/4
 * M_1_PI     - 1/pi
 * M_2_PI     - 2/pi
 * M_2_SQRTPI - 2/sqrt(pi)
 * M_SQRT2    - sqrt(2)
 * M_SQRT1_2  - 1/sqrt(2)
 */

#define M_E        2.71828182845904523536
#define M_LOG2E    1.44269504088896340736
#define M_LOG10E   0.434294481903251827651
#define M_LN2      0.693147180559945309417
#define M_LN10     2.30258509299404568402
#define M_PI       3.14159265358979323846
#define M_PI_2     1.57079632679489661923
#define M_PI_4     0.785398163397448309616
#define M_1_PI     0.318309886183790671538
#define M_2_PI     0.636619772367581343076
#define M_2_SQRTPI 1.12837916709551257390
#define M_SQRT2    1.41421356237309504880
#define M_SQRT1_2  0.707106781186547524401

#endif  /* _USE_MATH_DEFINES */

Full text and comments »

  • Vote: I like it
  • +32
  • Vote: I do not like it

By bkrtoni, history, 7 years ago, In English

I found this on the internet archive :D

Link

Full text and comments »

  • Vote: I like it
  • +64
  • Vote: I do not like it

By bkrtoni, history, 7 years ago, In English

that's happening when there is a reply of reply of reply ...etc
this is bad

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it

By bkrtoni, history, 7 years ago, In English
  • Vote: I like it
  • +41
  • Vote: I do not like it

By bkrtoni, history, 7 years ago, In English

Hello Codeforces

I think The programmers now watching the Clasico ,
So, Who do you support? Real Madrid or Barcelona ?

For Fun :)

Full text and comments »

  • Vote: I like it
  • -31
  • Vote: I do not like it

By bkrtoni, history, 7 years ago, In English
  • Vote: I like it
  • +35
  • Vote: I do not like it

By bkrtoni, history, 7 years ago, In English

Hello World :)

For non Russian — English speaker.

I think understanding a problem will help you to solve it faster , also the solution is all about understanding the problem. So tell me what you do to understand the problem statement. Thanks :)

Full text and comments »

  • Vote: I like it
  • -16
  • Vote: I do not like it

By bkrtoni, history, 8 years ago, In English

We all know stdc++.h lib that includes all libs in c++ But we can't use it in visual studio so i know a way to use it in visual studio , and this may help any one using VS and want to use stdc++.h

First thing

Download stdc++.h lib this is a link to download the file

Download link

Second thing

Copy the stdc++.h file Go to DIR C:\Program Files\Microsoft Visual Studio 12.0\VC\include\ Create new folder here and name it bits then paste stdc++.h inside the folder

Last thing

Open VS , make c++ project and try the Lib #include<bits/stdc++.h>

and that is everything I hope that will help you :)

Full text and comments »

  • Vote: I like it
  • +20
  • Vote: I do not like it

By bkrtoni, history, 8 years ago, In English

Hello Everyone.

When i started with problem solving i still don't know how to make a good plan to train well, Even i don't have any good reference to learn from. I am just solving problems, i think it's bad thing , 'coz everything goes slower. My main problem is in graph, it is easy but i can't solve any graph topics and some of DP topics.

Please help me to train well 'coz there is contest (ACM JCPC) in first of october 2016, i have only one month to train.

Thank you.

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it

By bkrtoni, history, 8 years ago, In English

Hello every body.

please tell me how to add some one as friend on codeforces.

there is no add friend button in any profile but i see i have 6 friend ,i don't know how they added me.

####

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it