#2026
Determinati lungimea maximă a unui platou care poate să apară în şir în urma efectuării operatiunilor de maxim k ori sau elementul din care este format platoul.
| Problema | PlatouK | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1.7 secunde | Limita memorie |
Total: 6 MB
/
Stivă 6 MB
|
| Id soluție | #64568755 | Utilizator | |
| Fișier | platouk.cpp | Dimensiune | 1.31 KB |
| Data încărcării | 14 Mai 2026, 19:18 | Scor/rezultat | 0 puncte |
platouk.cpp: In function ‘int main()’: platouk.cpp:17:28: warning: comparison of integer expressions of different signedness: ‘std::vector<short unsigned int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 17 | if(v[x].size() == k) { | ~~~~~~~~~~~~^~~~ platouk.cpp:42:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<short unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 42 | while (j <= k + 1 && j <= v[i].size()) { | ~~^~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0.405 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.056 secunde | Raspuns gresit. | 15 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0.389 secunde | Raspuns gresit. | 20 | 0 | ||
| 8 | 0.063 secunde | Raspuns gresit. | 15 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 10 | 0.001 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PlatouK 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ă.