#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 | #57830000 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 1.74 KB |
Data încărcării | 23 Aprilie 2025, 19:52 | Scor / rezultat | 40 puncte |
statisticiordine.cpp: In function 'long long int n_th_element(int)': statisticiordine.cpp:19:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<numere.size();i++) ^ statisticiordine.cpp:28:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cautat<mai_mic.size()) ^ statisticiordine.cpp:33:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if(cautat<mai_mic.size() + nr_egali) // cautat e mai mare decat nr de numere mai mici si e <= decat numarul de numere cu tot cu cel ales ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:45:27: warning: unused variable 'k' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^ statisticiordine.cpp:45:29: warning: unused variable 't' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^ statisticiordine.cpp:45:31: warning: unused variable 'q' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^ statisticiordine.cpp:45:33: warning: unused variable 'nr' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^ statisticiordine.cpp:45:36: warning: unused variable 'minim' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^ statisticiordine.cpp:45:42: warning: unused variable 'maxim' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^ statisticiordine.cpp:45:48: warning: unused variable 'suma' [-Wunused-variable] long long int n,m,i,j,k,t,q,nr,minim,maxim,suma; ^
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.004 secunde | OK. | 5 | 5 | ||
5 | 0.012 secunde | OK. | 5 | 5 | ||
6 | 0.012 secunde | OK. | 5 | 5 | ||
7 | 0 secunde | OK. | 5 | 5 | ||
8 | 0.008 secunde | OK. | 5 | 5 | ||
9 | 0.2 secunde | Caught fatal signal 11 | 20 | 0 | ||
10 | 0.16 secunde | Caught fatal signal 11 | 20 | 0 | ||
11 | 0.2 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ă.