#1931
Definim un număr ca fiind fantastic dacă numărul de numere la care acesta se împarte exact este un număr prim.
Dându-se un șir cu n
numere întregi strict pozitive, să se afișeze numărul de numere fantastice din șir.
Moisil++, 2016
Problema | Fantastice | Operații I/O |
![]() fantastice.in /fantastice.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
Id soluție | #58188860 | Utilizator | |
Fișier | fantastice.cpp | Dimensiune | 846 B |
Data încărcării | 19 Mai 2025, 14:22 | Scor / rezultat | 0 puncte |
fantastice.cpp: In function 'int prim(int)': fantastice.cpp:27:9: warning: unused variable 'ok' [-Wunused-variable] { int ok=1; ^ fantastice.cpp: In function 'int main()': fantastice.cpp:39:15: warning: unused variable 'j' [-Wunused-variable] int n,x,i,j,nr=0; ^ fantastice.cpp: In function 'int prim(int)': fantastice.cpp:35:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
12 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
13 | 0.016 secunde | Raspuns gresit. | 5 | 0 | ||
14 | 0.024 secunde | Raspuns gresit. | 5 | 0 | ||
15 | 0.032 secunde | Raspuns gresit. | 5 | 0 | ||
16 | 0.04 secunde | Raspuns gresit. | 5 | 0 | ||
17 | 0.136 secunde | Raspuns gresit. | 5 | 0 | ||
18 | 0.232 secunde | Raspuns gresit. | 5 | 0 | ||
19 | 0.316 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Fantastice 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ă.