Skip to content

Instantly share code, notes, and snippets.

@akirap3
Created November 28, 2020 05:09
Show Gist options
  • Save akirap3/54c90109c5434f993868f66c0761f2b2 to your computer and use it in GitHub Desktop.
Save akirap3/54c90109c5434f993868f66c0761f2b2 to your computer and use it in GitHub Desktop.
# main part
userInput = input("Enter the matrix you would like to check (Sudoku): ").strip()
userInputList = userInput.split(' ')

testList = inputToMatrix(userInputList)
answer1 = checkRowAndColumnSum(testList)

slicedMatrix = tosliceMatrix(testList)
anwser2 = checkSubMatrixSum(slicedMatrix)

if answer1 and anwser2:
    print("Yes")
else:
    print("No")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment