ICPC Cheat-Sheet


number

pi

const double pi = 2 * acos(0.0)

infinity

int oo = 0x3f3f3f3f
double inf = 1.0/0.0

round

int result = (int)((double)a + 0.5);

library functions

algorithm header

__gcd