#4809
Se dă un număr n și apoi un șir cu n elemente, numere naturale nenule. Să se determine câte dintre numerele din șir sunt strict mai mari decât precedentele lor.
adhoc
| Problema | nota10 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 1 MB
/
Stivă 1 MB
|
| Id soluție | #64633936 | Utilizator | |
| Fișier | nota10.cpp | Dimensiune | 288 B |
| Data încărcării | 19 Mai 2026, 16:02 | Scor/rezultat | 0 puncte |
nota10.cpp: In function ‘int main()’: nota10.cpp:15:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 15 | if(x>max) | ^~ nota10.cpp:17:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 17 | max=x; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.008 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.008 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.077 secunde | Raspuns gresit. | 20 | 0 | ||
| 8 | 0.077 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nota10 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ă.