Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
You need to maintain only the biggest 3 distinct sums
The limits are small enough for you to iterate over all rhombus sizes then iterate over all possible borders to get the sums