#1264
StatisticiOrdine
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 | #49063798 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 1.87 KB |
Data încărcării | 14 Februarie 2024, 09:50 | Scor / rezultat | 50 puncte |
statisticiordine.cpp: In function 'int partition(unsigned int*, int, int)': statisticiordine.cpp:18:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (a[j] <= x) ^ statisticiordine.cpp: In function 'int kthSmallest(unsigned int*, int, int, unsigned int)': statisticiordine.cpp:36:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k > 0 && k <= r - l + 1) ^ statisticiordine.cpp:45:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (index - l == k - 1) ^ statisticiordine.cpp:50:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (index - l > k - 1) ^
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 | 1.12 secunde | OK. | 5 | 5 | ||
5 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0 secunde | OK. | 5 | 5 | ||
8 | 0.092 secunde | OK. | 5 | 5 | ||
9 | 0.552 secunde | OK. | 20 | 20 | ||
10 | Depășit | Limita de timp depășită | 20 | 0 | ||
11 | 0.552 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 50 |
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ă.