Simplest sudoku X38252


Statement
 

pdf   zip

html

Input The input will be always three lines. Each line containing three numbers from 1 to 9 separated by white spaces. The input will be always three lines. Each line containing three numbers from 1 to 9 separated by white spaces.

Output The output will print a single line when the square is valid:     This is a valid sudoku    

Otherwise the output will print a different single line followed by a variable number of lines containing the missing numbers (one number per line) ordered:     This is an invalid sudoku. Missing numbers are:    

Public test cases
  • Input

    1 2 3
    4 5 6
    7 8 9
    

    Output

    This is a valid sudoku
    
  • Input

    1 1 2
    3 4 5
    5 6 7
    

    Output

    This is an invalid sudoku. Missing numbers are:
    8
    9
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Java Python Rust