#3502
hard_prime
Se dau n
numere naturale. Să se afișeze toate numerele prime distincte dintre acestea in ordine crescătoare.
Problema | hard_prime | Operații I/O |
hard_prime.in /hard_prime.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 0.2 MB
/
Stivă 0.2 MB
|
Id soluție | #26251412 | Utilizator | |
Fișier | hard_prime.cpp | Dimensiune | 2.26 KB |
Data încărcării | 28 Noiembrie 2020, 13:36 | Scor / rezultat | 40 puncte |
hard_prime.cpp: In function 'void insrt(int, int)': hard_prime.cpp:48:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(poz>=prime.size()) ^ hard_prime.cpp:54:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(poz<prime.size()/2) ^ hard_prime.cpp: In function 'int main()': hard_prime.cpp:113:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<prime.size();i++) ^ hard_prime.cpp: In function 'int cauta(int)': hard_prime.cpp:25:11: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] return mij; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0.016 secunde | OK. | 10 | 10 | ||
3 | 0.032 secunde | OK. | 10 | 10 | ||
4 | 0.056 secunde | OK. | 15 | 15 | ||
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 | 40 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema hard_prime 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ă.