#506
ExistaPrime
Se dă un şir cu n
elemente, numere naturale. Să se verifice dacă în șir există elemente prime.
Problema | ExistaPrime | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51300797 | Utilizator | |
Fișier | existaprime.cpp | Dimensiune | 553 B |
Data încărcării | 05 Iunie 2024, 14:48 | Scor / rezultat | 50 puncte |
existaprime.cpp: In function 'int main()': existaprime.cpp:7:11: warning: unused variable 'j' [-Wunused-variable] int i,j,x,gasit,p,d,ok; ^ existaprime.cpp:7:13: warning: unused variable 'x' [-Wunused-variable] int i,j,x,gasit,p,d,ok; ^ existaprime.cpp:7:15: warning: unused variable 'gasit' [-Wunused-variable] int i,j,x,gasit,p,d,ok; ^ existaprime.cpp:7:21: warning: unused variable 'p' [-Wunused-variable] int i,j,x,gasit,p,d,ok; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
4 | 0 secunde | OK. | 30 | 30 | ||
Punctaj total | 50 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ExistaPrime 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ă.