Skip to content

mathrax

Difficulty: 🟡 Medium | Tags: latin-square number math | Aliases: mathrax

📖 Rule Reference: Read full rules on external site


Input Format

TBD

Output Format

TBD

Examples

Python Quick Start

Use the following code to solve this puzzle directly:

import puzzlekit

# Raw input data
problem_str = """
5 5
- - - - -
- - - 1 -
- - - - -
- - - - -
- - - - -
4+ - - -
- - 3- -
- 3- - -
- - - -
"""

# Solve
res = puzzlekit.solve(problem_str, puzzle_type="mathrax")

# Print solution grid
print(res.solution_data.get('solution_grid', []))

# Visualize (optional)
res.show()

Solution Output

5 5
1 2 3 4 5
2 3 5 1 4
3 5 4 2 1
4 1 2 5 3
5 4 1 3 2