#1320
Să se verifice dacă in șir este: șir constant, șir strict crescător, șir crescător, șir strict descrescător, șir descrescător, șir neordonat.
| Problema | ordonat_neordonat | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63293749 | Utilizator | |
| Fișier | ordonat_neordonat.cpp | Dimensiune | 1.20 KB |
| Data încărcării | 25 Februarie 2026, 10:36 | Scor/rezultat | 20 puncte |
ordonat_neordonat.cpp: In function 'int main()': ordonat_neordonat.cpp:9:13: warning: unused variable 'k' [-Wunused-variable] int n , k=1, ok=1, v[1001], x,constant=1,descrescator=1, strictdescrescator=1, crescatoare=1, strictcrescator=1; ^ ordonat_neordonat.cpp:9:18: warning: unused variable 'ok' [-Wunused-variable] int n , k=1, ok=1, v[1001], x,constant=1,descrescator=1, strictdescrescator=1, crescatoare=1, strictcrescator=1; ^ ordonat_neordonat.cpp:9:33: warning: unused variable 'x' [-Wunused-variable] int n , k=1, ok=1, v[1001], x,constant=1,descrescator=1, strictdescrescator=1, crescatoare=1, strictcrescator=1; ^ ordonat_neordonat.cpp:10:5: warning: 'n' is used uninitialized in this function [-Wuninitialized] for(int i=1;i<=n;i++) ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 10 | 10 | ||
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 9 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 10 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| Punctaj total | 20 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ordonat_neordonat 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ă.