#1462
| Problema | Gasti | Operații I/O |
gasti.in/gasti.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
| Id soluție | #64415643 | Utilizator | |
| Fișier | gasti.cpp | Dimensiune | 1.22 KB |
| Data încărcării | 05 Mai 2026, 20:51 | Scor/rezultat | 60 puncte |
gasti.cpp: In function ‘int main()’: gasti.cpp:52:35: warning: ‘cnt1’ may be used uninitialized [-Wmaybe-uninitialized] 52 | else if (i.second == mx1) ++ cnt1; | ^~~~~~~ gasti.cpp:46:9: note: ‘cnt1’ was declared here 46 | int cnt1, cnt2, mx1 = 0, mx2 = 0; | ^~~~ gasti.cpp:50:35: warning: ‘cnt2’ may be used uninitialized [-Wmaybe-uninitialized] 50 | else if (i.second == mx2) ++ cnt2; | ^~~~~~~ gasti.cpp:46:15: note: ‘cnt2’ was declared here 46 | int cnt1, cnt2, mx1 = 0, mx2 = 0; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Corect ambele! | 10 | 10 | ||
| 2 | 0.002 secunde | Gresit prima, Corect a doua! | 10 | 6 | ||
| 3 | 0.004 secunde | Gresit prima, Corect a doua! | 10 | 6 | ||
| 4 | 0.031 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
| 5 | 0.032 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
| 6 | 0.041 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
| 7 | 0.046 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
| 8 | 0.063 secunde | Gresit prima, Corect a doua! | 10 | 6 | ||
| 9 | 0.087 secunde | Gresit prima, Corect a doua! | 10 | 6 | ||
| 10 | 0.105 secunde | Corect ambele! | 10 | 10 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti 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ă.