#4549
Să se genereze o matrice pătratică după un set de reguli ce simulează viața unei populații de viruși.
Conway
| Problema | Conway Game of Life | Operații I/O |
conway.in/conway.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64798782 | Utilizator | |
| Fișier | conway_game_of_life.cpp | Dimensiune | 1.75 KB |
| Data încărcării | 02 Iunie 2026, 09:33 | Scor/rezultat | 0 puncte |
conway_game_of_life.cpp: In function ‘int main()’: conway_game_of_life.cpp:39:18: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 39 | if(a[i+1][j+1]==1) | ^~ conway_game_of_life.cpp:41:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 41 | if(c<=1 || c>3) | ^~ conway_game_of_life.cpp:60:18: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 60 | if(a[i+1][j+1]==1) | ^~ conway_game_of_life.cpp:62:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 62 | if(c==3) | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Conway Game of Life 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ă.