Comments

After generate the A*B, binary search x in [0, 106] to find how many A*B*C number isn't greater x.