#981
secventa11
Într-un şir trebuie determinată lungimea maximă a unei secvenţe de numere care în scrierea binară au numai cifra 1
.
Problema | secventa11 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 16 MB
/
Stivă 1 MB
|
Id soluție | #51688203 | Utilizator | |
Fișier | secventa11.cpp | Dimensiune | 717 B |
Data încărcării | 03 August 2024, 13:52 | Scor / rezultat | 0 puncte |
secventa11.cpp: In function 'int main()': secventa11.cpp:4:34: warning: unused variable 't' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:37: warning: unused variable 'nrc' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:44: warning: unused variable 'ma' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:48: warning: unused variable 'j' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:51: warning: unused variable 's' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:56: warning: unused variable 'm' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:59: warning: unused variable 'aux' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:64: warning: unused variable 'x' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:82: warning: unused variable 'sum' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:101: warning: unused variable 'drmax' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:110: warning: unused variable 'stmax' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:119: warning: unused variable 'a' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^ secventa11.cpp:4:122: warning: unused variable 'b' [-Wunused-variable] long long v[20000005], n, i, t, nrc=0, ma, j, s=0, m, aux, x, cnt=0, max=0, sum[100005] = {0}, drmax=0, stmax=0, a, b; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Caught fatal signal 11 | 20 | 0 | Exemplu | |
2 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
3 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
5 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema secventa11 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ă.