#1518
sudoku
Scrieţi un program care, pentru o matrice 9 x 9
dată, reprezentând un puzzle SUDOKU, determină o soluţie a unui astfel de puzzle.
Problema | sudoku | Operații I/O |
sudoku.in /sudoku.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #46126328 | Utilizator | |
Fișier | sudoku.cpp | Dimensiune | 2.27 KB |
Data încărcării | 04 Noiembrie 2023, 12:30 | Scor / rezultat | 20 puncte |
sudoku.cpp: In function 'int local(int, int)': sudoku.cpp:23:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(i <= 3) ^ sudoku.cpp:29:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(i > 3 && i <= 6) ^ sudoku.cpp:35:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(i > 6 && i <= 9) ^ sudoku.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sudoku face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.