AdvancedRating 1900
Solve the Sudoku
Fill the 9 × 9 grid (0 marks an empty cell) so that every row, column and 3 × 3 box contains 1–9 exactly once. The puzzle has exactly one solution. Print the solved grid.
Input
Nine rows of nine digits (no spaces).
Output
Nine rows.
Sample 1
Input
530070000 600195000 098000060 800060003 400803001 700020006 060000280 000419005 000080079
Output
534678912 672195348 198342567 859761423 426853791 713924856 961537284 287419635 345286179
Sample 2
Input
000000907 000420180 000705026 100904000 050000040 000507009 920108000 034059000 507000000
Output
462831957 795426183 381795426 173984265 659312748 248567319 926178534 834259671 517643892
Output appears here