The converging lens is one of the key components in high-resolution terahertz imaging. In this Letter, a binary diffractive lens is proposed for the scanning imaging system working at 278.6 GHz, in which a convergent beam with a waist diameter of 0.65 mm is generated, and 1 mm lateral imaging resolution is realized. This low-cost terahertz lens, constituted by concentric rings with different radii, is optimized by stimulated annealing algorithm and fabricated by three-dimensional printing. Compared with the conventional transmissive convex lens, higher resolution and enhanced imaging quality are achieved via smaller focal spot of the illumination beam. This type of lens would promote terahertz imaging closer to practical applications such as nondestructive testing and other scenarios.