#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 | #13380977 | Utilizator | |
Fișier | statisticiordine.c | Dimensiune | 659 B |
Data încărcării | 20 Ianuarie 2019, 15:55 | Scor / rezultat | 10 puncte |
statisticiordine.c: In function 'main': statisticiordine.c:17:8: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ statisticiordine.c:18:8: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &k); ^ statisticiordine.c:28:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", v+ i); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0.004 secunde | OK. | 5 | 5 | ||
5 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0.012 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0 secunde | OK. | 5 | 5 | ||
8 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 1.1 secunde | Raspuns gresit. | 20 | 0 | ||
10 | 0.492 secunde | Raspuns gresit. | 20 | 0 | ||
11 | 1.1 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 10 |
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ă.