Standard cell design with resolution-enhancement-technique-driven regularly placed contacts and gates