#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 | #64568994 | Utilizator | |
| Fișier | platouk.cpp | Dimensiune | 1.48 KB |
| Data încărcării | 14 Mai 2026, 19:36 | Scor/rezultat | 70 puncte |
platouk.cpp: In function ‘int main()’: platouk.cpp:17:28: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 17 | if(v[x].size() == k + 1) { | ~~~~~~~~~~~~^~~~~~~~ platouk.cpp:34:20: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 34 | if(v[x].size() == k + 1) { | ~~~~~~~~~~~~^~~~~~~~
| 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.434 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.055 secunde | OK. | 15 | 15 | ||
| 5 | 0.001 secunde | OK. | 5 | 5 | ||
| 6 | 0.001 secunde | OK. | 5 | 5 | ||
| 7 | 0.449 secunde | OK. | 20 | 20 | ||
| 8 | 0.055 secunde | OK. | 15 | 15 | ||
| 9 | 0.001 secunde | OK. | 5 | 5 | Exemplu | |
| 10 | 0.001 secunde | OK. | 5 | 5 | Exemplu | |
| Punctaj total | 70 | |||||
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ă.