Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 813 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 813 Bytes

Latin Square validator

Reads Latin squares from a file (i. e. sample-inputs.txt) and outputs the line number of the valid ones, optionally concurrently.

File structure:

Line 0: Number of cases to process.

Lines 1-n: Each line has one Latin square. First integer is the square's dimension and the rest are the cell values (one for each cell), from left to right and top to bottom, separated by a single whitespace.

Usage

  1. Download project.
  2. Install dependencies with Maven (only needed to run the tests) & compile sources.
  3. In a shell execute: java /path/to/bin/Main.
  4. Enter path to inputs file & number of threads to use.