http://community.topcoder.com/stat?c=problem_statement&pm=12995
简单题
class PackingBallsDiv2 { public: int minPacks(int R, int G, int B) { int sum = 0; sum += (R / 3); sum += (G / 3); sum += (B / 3); R %= 3; G %= 3; B %= 3; while ((R > 0 || G > 0 || B > 0)) { sum++; R--; G--; B--; } return sum; } };