Reconfigurable intelligent surface (RIS) technology is promising to enhance wireless communications services by providing smart radio environment. In this paper, we investigate the RIS aided cellular networks with device-to-device (D2D) users, and maximize sum of transmission rate D2D from a new perspective. addition solving typical resource allocation problems for communications, paper further...