#1264
Se dau n numere naturale. Să se afișeze al k-lea cel mai mic element din șir.
| Problema | StatisticiOrdine | Operații I/O |
statisticiordine.in/statisticiordine.out
|
|---|---|---|---|
| Limita timp | 1.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 1 MB
|
| Id soluție | #64069796 | Utilizator | |
| Fișier | statisticiordine.cpp | Dimensiune | 729 B |
| Data încărcării | 15 Aprilie 2026, 13:12 | Scor/rezultat | 0 puncte |
statisticiordine.cpp: In function ‘void sort_div(int, int)’: statisticiordine.cpp:26:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 26 | if(p==k){ fout<<a[k];exit(0);} | ~^~~ statisticiordine.cpp: In function ‘int main()’: statisticiordine.cpp:36:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 36 | for(int i=1;i<=n;i++){ | ~^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0.031 secunde | Raspuns gresit. | 5 | 0 | ||
| 5 | 0.233 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0.216 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 9 | Depășit | Limita de timp depășită | 20 | 0 | ||
| 10 | Depășit | Limita de timp depășită | 20 | 0 | ||
| 11 | Depășit | Limita de timp depășită | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema StatisticiOrdine 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ă.