#4103
Se dă un vector cu n
numere naturale, n
fiind număr par. Să se verifice dacă toate perechile de elemente egal depărtate de capetele vectorului au aceeași paritate.
Problema | VerifParitate1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57796243 | Utilizator | |
Fișier | verifparitate1.cpp | Dimensiune | 383 B |
Data încărcării | 16 Aprilie 2025, 21:05 | Scor / rezultat | 100 puncte |
verifparitate1.cpp: In function 'int main()': verifparitate1.cpp:11:21: warning: unused variable 'p' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:23: warning: unused variable 'ok' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:28: warning: unused variable 'd' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:32: warning: unused variable 'a' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:36: warning: unused variable 'b' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:38: warning: unused variable 'x' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:42: warning: unused variable 'y' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:44: warning: unused variable 'c' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:46: warning: unused variable 'z' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^ verifparitate1.cpp:11:58: warning: unused variable 'l' [-Wunused-variable] unsigned long long p,ok=1,d,n,a,i,b,x,j,y,c,z=0,v[1001],l=0; ^
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 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VerifParitate1 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ă.