#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 | #56436159 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 1.24 KB |
Data încărcării | 19 Februarie 2025, 11:05 | Scor / rezultat | 100 puncte |
statisticiordine.cpp: In function 'unsigned int quicksort(int, int)': statisticiordine.cpp:32:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i==k) return v[i]; ^ statisticiordine.cpp:33:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i>k) ^ statisticiordine.cpp:35:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i<k) ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++) ^ statisticiordine.cpp: In function 'unsigned int quicksort(int, int)': statisticiordine.cpp:39:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
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.02 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.004 secunde | OK. | 5 | 5 | ||
9 | 0.544 secunde | OK. | 20 | 20 | ||
10 | 0.332 secunde | OK. | 20 | 20 | ||
11 | 0.592 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
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ă.