#189
Să se verifice dacă un număr este de tip “munte”.
Problema | NumarMunte | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57372576 | Utilizator | |
Fișier | numarmunte.cpp | Dimensiune | 1.26 KB |
Data încărcării | 27 Martie 2025, 20:02 | Scor / rezultat | 100 puncte |
numarmunte.cpp: In function 'int main()': numarmunte.cpp:23:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < cif.size(); i++) { ^ numarmunte.cpp:31:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (pozmax == 0 || pozmax == cif.size() - 1) { ^ numarmunte.cpp:43:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = pozmax + 1; i < cif.size(); i++) { ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 80 | 80 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NumarMunte 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ă.