Skip to content

hitori


Input Format

No input description provided.

Output Format

No output description provided.

Examples

Python Quick Start

Use the following code to solve this puzzle directly:

import puzzlekit

# Raw input data
problem_str = """
4 4
3 3 1 4
4 3 2 2
1 3 4 2
3 4 3 2
"""

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

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

# Visualize (optional)
res.show()

Solution Output

4 4
- x - -
- - - x
- x - -
x - - x