static long ratio(long x, long y) { ret y == 0 ? 0 : x/y; } static double ratio(double x, double y) { ret y == 0 ? 0 : x/y; }