← Complete problem index

PROJECT EULER · #0166

Criss Cross

Statement only · SolvedOriginal problem ↗

A 4×4 grid is filled with digits d, 0d9.

It can be seen that in the grid 6330504307141245 the sum of each row and each column has the value 12. Moreover the sum of each diagonal is also 12.

In how many ways can you fill a 4×4 grid with the digits d, 0d9 so that each row, each column, and both diagonals have the same sum?

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.