#1518
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 | #64814374 | Utilizator | |
| Fișier | sudoku.cpp | Dimensiune | 1.37 KB |
| Data încărcării | 03 Iunie 2026, 09:15 | Scor/rezultat | 0 puncte |
sudoku.cpp: In function ‘bool bck()’: sudoku.cpp:39:8: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 39 | for(int j = 1; j <= 9; j++) | ^~~ sudoku.cpp:57:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 57 | return true; | ^~~~~~ sudoku.cpp: In function ‘int main()’: sudoku.cpp:64:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 64 | for(int j = 1; j <= 9; j++) | ^~~ sudoku.cpp:66:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 66 | cout<<endl; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
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ă.