#981
Î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 | #55748728 | Utilizator | |
Fișier | secventa11.cpp | Dimensiune | 439 B |
Data încărcării | 24 Ianuarie 2025, 16:35 | Scor / rezultat | 100 puncte |
secventa11.cpp: In function 'int main()': secventa11.cpp:6:12: warning: unused variable 'st' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:19: warning: unused variable 'dr' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:26: warning: unused variable 'S' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:32: warning: unused variable 'y' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:35: warning: unused variable 'gmax' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:44: warning: unused variable 'k' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:47: warning: unused variable 'y1' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:51: warning: unused variable 'd' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:54: warning: unused variable 'x1' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:6:58: warning: unused variable 't' [-Wunused-variable] int n, st, x, dr, i, S, c, y, gmax, g, k, y1, d, x1, t, b, bmax; cin>>n; ^ secventa11.cpp:20:17: warning: 'bmax' may be used uninitialized in this function [-Wmaybe-uninitialized] cout << bmax; ^ secventa11.cpp:16:23: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] if(g == c) b++; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0.004 secunde | OK. | 20 | 20 | ||
5 | 0.12 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
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ă.