Summed Skyscrapers

Summed Skyscrapers is a variant of the classic Skyscrapers puzzle, invented by Tim Peeters (Netherlands) in 1999. As in the original puzzle, each row and column must contain all building heights without repetition, and taller buildings block the view of shorter ones.
Instead of indicating how many buildings are visible, clues represent the sum of the heights of all buildings visible from that direction. This modification preserves the visibility logic while introducing an additional arithmetic layer, resulting in deeper deduction paths and richer solving strategies.

Rules

Insert a digit from 1 to 5 into every cell, so that each digit appears once in each row and column. Each digit in a cell represents the height of a building. Numbers outside the grid indicate a sum of heights of visible buildings a distant observer could see (at least part of) in that row or column. A building will hide any shorter buildings behind it.

Click to see the answer.