#4515
Chimmy are un șir de N numere întregi și Q întrebări de forma a b, unde pentru fiecare întrebare Chimmy dorește să afle, pe parcurgerea șirului de la poziția a la poziția b, de câte ori se schimbă maximul. Chimmy, neștiind să programeze, vă cere să îl ajutați pentru 100 de puncte!
| Problema | running_max | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1.35 secunde | Limita memorie |
Total: 256 MB
/
Stivă 8 MB
|
| Id soluție | #58548671 | Utilizator | |
| Fișier | running_max.cpp | Dimensiune | 988 B |
| Data încărcării | 16 Iunie 2025, 23:19 | Scor/rezultat | 5 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | OK. | 5 | 5 | ||
| 1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 5 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0.02 secunde | Raspuns gresit. | 5 | 0 | ||
| 9 | 0.044 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0.12 secunde | Raspuns gresit. | 5 | 0 | ||
| 11 | 0.244 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0.476 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0.5 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0.508 secunde | Raspuns gresit. | 5 | 0 | ||
| 15 | 0.468 secunde | Raspuns gresit. | 5 | 0 | ||
| 16 | 0.508 secunde | Raspuns gresit. | 5 | 0 | ||
| 17 | 0.536 secunde | Raspuns gresit. | 5 | 0 | ||
| 18 | 0.508 secunde | Raspuns gresit. | 5 | 0 | ||
| 19 | 0.5 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 5 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema running_max 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ă.