#4065
Se dă o listă de N numere naturale, indexată de la 1 la N, și Q query-uri de forma op poz, unde op = 1, 2 este tipul operației.
Cele 2 operații sunt:
op = 1: se șterge din listă elementul aflat pe poziția pozop = 2: se afișează elementul din listă aflat pe poziția poz| Problema | Big Data | Operații I/O |
bigdata.in/bigdata.out
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 4 MB
/
Stivă 4 MB
|
| Id soluție | #64274556 | Utilizator | |
| Fișier | big_data.cpp | Dimensiune | 1.20 KB |
| Data încărcării | 27 Aprilie 2026, 15:17 | Scor/rezultat | 30 puncte |
big_data.cpp: In function ‘int main()’: big_data.cpp:30:17: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: 30 | pos = pos - 1; | ^ In file included from /usr/include/c++/13/bits/char_traits.h:42, from /usr/include/c++/13/string:42, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52, from big_data.cpp:1: /usr/include/c++/13/bits/postypes.h:168:7: note: candidate 1: ‘std::fpos<_StateT> std::fpos<_StateT>::operator-(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long int]’ 168 | operator-(streamoff __off) const | ^~~~~~~~ big_data.cpp:30:17: note: candidate 2: ‘operator-(std::streamoff {aka long int}, int)’ (built-in) 30 | pos = pos - 1; | ^ big_data.cpp:37:21: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: 37 | pos = pos - 1; | ^ /usr/include/c++/13/bits/postypes.h:168:7: note: candidate 1: ‘std::fpos<_StateT> std::fpos<_StateT>::operator-(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long int]’ 168 | operator-(streamoff __off) const | ^~~~~~~~ big_data.cpp:37:21: note: candidate 2: ‘operator-(std::streamoff {aka long int}, int)’ (built-in) 37 | pos = pos - 1; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | Caught fatal signal 6 | 10 | 0 | Exemplu | |
| 2 | 0.004 secunde | OK. | 10 | 10 | ||
| 3 | 0.028 secunde | OK. | 10 | 10 | ||
| 4 | 0.024 secunde | OK. | 10 | 10 | ||
| 5 | Depășit | Limita de timp depășită | 20 | 0 | ||
| 6 | Depășit | Limita de timp depășită | 20 | 0 | ||
| 7 | Depășit | Limita de timp depășită | 20 | 0 | ||
| Punctaj total | 30 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Big Data 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ă.