// approximsum -- approximate number as sum of integer multiples of two others // David Eppstein, UC Irvine, 18 Jun 1996 // // given a,b,c find x,y >= 0 s.t. ax+by is as close as possible to c void approximsum(long a, long b, long c, long & x, long & y);