Little Sub and his Geometry Problem

ZOJ - 4082