#2737
Se dau n numere naturale. Să se afișeze numărul de divizori al produsului tuturor celor n numere citite MODULO 1000000007.
| Problema | NrDivProd | Operații I/O |
nrdivprod.in/nrdivprod.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
| Id soluție | #23393155 | Utilizator | |
| Fișier | nrdivprod.cpp | Dimensiune | 618 B |
| Data încărcării | 30 Iunie 2020, 19:19 | Scor/rezultat | 5 puncte |
nrdivprod.cpp: In function 'int nr_div(long long unsigned int)': nrdivprod.cpp:12:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1;i*i<x;++i) ^ nrdivprod.cpp:15:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i*i==x) nr++; ^ nrdivprod.cpp: In function 'int main()': nrdivprod.cpp:27:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v.size();++i) ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 5 | 5 | ||
| 2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.004 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | Depășit | Limita de timp depășită | 5 | 0 | ||
| 11 | Depășit | Limita de timp depășită | 5 | 0 | ||
| 12 | 0.052 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0.084 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 5 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrDivProd 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ă.