#3831
Se dă un vector cu n elemente. Să se determine numărul de secvențe care au medianul valorilor egal cu k.
infoleague.net runda 2 problema 1.
| Problema | Medians | Operații I/O |
medians.in/medians.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 32 MB
|
| Id soluție | #60998465 | Utilizator | |
| Fișier | medians.cpp | Dimensiune | 1.80 KB |
| Data încărcării | 17 Noiembrie 2025, 10:01 | Scor/rezultat | 0 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Exited with error status 53 | 5 | 0 | ||
| 2 | 0 secunde | Exited with error status 57 | 5 | 0 | ||
| 3 | 0 secunde | Exited with error status 50 | 5 | 0 | ||
| 4 | 0 secunde | Exited with error status 57 | 5 | 0 | ||
| 5 | 0.012 secunde | Exited with error status 32 | 5 | 0 | ||
| 6 | 0.024 secunde | Exited with error status 53 | 5 | 0 | ||
| 7 | 0.052 secunde | Exited with error status 48 | 5 | 0 | ||
| 8 | 0.076 secunde | Exited with error status 50 | 5 | 0 | ||
| 9 | 0.1 secunde | Exited with error status 57 | 5 | 0 | ||
| 10 | 0.108 secunde | Exited with error status 56 | 5 | 0 | ||
| 11 | 0.124 secunde | Exited with error status 32 | 5 | 0 | ||
| 12 | 0.136 secunde | Exited with error status 32 | 5 | 0 | ||
| 13 | 0.16 secunde | Exited with error status 57 | 5 | 0 | ||
| 14 | 0.168 secunde | Exited with error status 55 | 5 | 0 | ||
| 15 | 0.188 secunde | Exited with error status 57 | 5 | 0 | ||
| 16 | 0.2 secunde | Exited with error status 55 | 5 | 0 | ||
| 17 | 0.232 secunde | Exited with error status 55 | 5 | 0 | ||
| 18 | 0.224 secunde | Exited with error status 51 | 5 | 0 | ||
| 19 | 0.224 secunde | Exited with error status 52 | 5 | 0 | ||
| 20 | 0.256 secunde | Exited with error status 56 | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Medians 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ă.