1 2 3 4 5 6
#include <stdlib.h> // for llabs long long llabs(long long i) { return (i < 0 ? -i : i); }