#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 | #58367464 | Utilizator | |
| Fișier | statisticiordine.cpp | Dimensiune | 1.34 KB |
| Data încărcării | 29 Mai 2025, 16:23 | Scor/rezultat | 40 puncte |
statisticiordine.cpp: In member function 'void StatisticiOrdine::citire()': statisticiordine.cpp:20:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < n; i++) { ^ statisticiordine.cpp: In member function 'int StatisticiOrdine::partionare(int, int)': statisticiordine.cpp:29:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (v[j] < pivot) { ^ statisticiordine.cpp: In member function 'uint32_t StatisticiOrdine::quick_select(int, int)': statisticiordine.cpp:42:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == K) { ^ statisticiordine.cpp:46:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (K > k) { ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0 secunde | OK. | 5 | 5 | ||
| 3 | 0 secunde | OK. | 5 | 5 | ||
| 4 | 0.016 secunde | OK. | 5 | 5 | ||
| 5 | 0.008 secunde | OK. | 5 | 5 | ||
| 6 | 0.008 secunde | OK. | 5 | 5 | ||
| 7 | 0 secunde | OK. | 5 | 5 | ||
| 8 | 0.14 secunde | OK. | 5 | 5 | ||
| 9 | 0.292 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 10 | 0.236 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 11 | 0.292 secunde | Caught fatal signal 11 | 20 | 0 | ||
| Punctaj total | 40 | |||||
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ă.