#1972
Hambar
Să se determine dreptunghiul de arie maximă ce conține numai 0
.
Problema | Hambar | Operații I/O |
hambar.in /hambar.out
|
---|---|---|---|
Limita timp | 3 secunde | Limita memorie |
Total: 5 MB
/
Stivă 1 MB
|
Id soluție | #36966887 | Utilizator | |
Fișier | hambar.cpp | Dimensiune | 1.64 KB |
Data încărcării | 04 Iunie 2022, 19:13 | Scor / rezultat | 50 puncte |
hambar.cpp: In function 'int main()': hambar.cpp:51:5: warning: unused variable 'xd' [-Wunused-variable] int xd, yd, xs, ys; ^ hambar.cpp:51:9: warning: unused variable 'yd' [-Wunused-variable] int xd, yd, xs, ys; ^ hambar.cpp:51:13: warning: unused variable 'xs' [-Wunused-variable] int xd, yd, xs, ys; ^ hambar.cpp:51:17: warning: unused variable 'ys' [-Wunused-variable] int xd, yd, xs, ys; ^ hambar.cpp: In function 'void citire(int*, int*, int**, int**)': hambar.cpp:7:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d ", &(*n)); ^ hambar.cpp:8:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d ", &(*m)); ^ hambar.cpp:13:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d ",&((*xp)[i])); ^ hambar.cpp:14:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d ",&((*yp)[i])); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0.004 secunde | OK. | 10 | 10 | ||
4 | 0.012 secunde | OK. | 10 | 10 | ||
5 | 0.828 secunde | OK. | 10 | 10 | ||
6 | Depășit | Limita de timp depășită | 10 | 0 | ||
7 | Depășit | Limita de timp depășită | 10 | 0 | ||
8 | Depășit | Limita de timp depășită | 10 | 0 | ||
9 | Depășit | Limita de timp depășită | 10 | 0 | ||
10 | Depășit | Limita de timp depășită | 10 | 0 | ||
Punctaj total | 50 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Hambar 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ă.