# [3256\. Maximum Value Sum by Placing Three Rooks I](https://leetcode.com/problems/maximum-value-sum-by-placing-three-rooks-i/) :::spoiler Hint ```cpp= ``` ::: :::spoiler Solution ```cpp= ``` - T: $O()$ - S: $O()$ :::