#1870
Se dă un vector v cu N elemente numere naturale numerotate de la 1 la N și M întrebări de forma:
x y p: se afișează valoarea ce s-ar afla pe poziția p dacă v[x...y] ar fi ordonat crescător.| Problema | easyxy | Operații I/O |
easyxy.in/easyxy.out
|
|---|---|---|---|
| Limita timp | 1.75 secunde | Limita memorie |
Total: 20 MB
/
Stivă 8 MB
|
| Id soluție | #63380958 | Utilizator | |
| Fișier | easyxy.cpp | Dimensiune | 1.81 KB |
| Data încărcării | 28 Februarie 2026, 21:16 | Scor/rezultat | 0 puncte |
easyxy.cpp: In function 'void build(int, int, int)': easyxy.cpp:27:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i < V[x].size() && j < V[y].size()){ ^ easyxy.cpp:27:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i < V[x].size() && j < V[y].size()){ ^ easyxy.cpp:34:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i < V[x].size()) ^ easyxy.cpp:36:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (j < V[y].size()) ^ easyxy.cpp:26:9: warning: unused variable 'k' [-Wunused-variable] int k = -1; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.544 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 1 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.06 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 1.008 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 1.108 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 1.012 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema easyxy 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ă.