#3522
Nr_Div_Huge
Se dau N
perechi de numere n k
. Pentru fiecare pereche să se calculeze numărul de divizori al lui \(P = {k}^{n} \cdot \left(1 + 2 + 3 + \cdots + k \right) \).
Problema | Nr_Div_Huge | Operații I/O |
nr_div_huge.in /nr_div_huge.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #46361438 | Utilizator | |
Fișier | nr_div_huge.cpp | Dimensiune | 1.71 KB |
Data încărcării | 11 Noiembrie 2023, 16:36 | Scor / rezultat | 0 puncte |
nr_div_huge.cpp: In function 'int divisors(unsigned int, unsigned int)': nr_div_huge.cpp:50:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(d*d>n)d=n; ^ nr_div_huge.cpp: In function 'int NrP(long long int, long long int)': nr_div_huge.cpp:65:28: warning: unused variable 'power' [-Wunused-variable] unsigned long long int power=1,nrdk1,nrdkn,res=0; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Exited with error status 127 | 5 | 0 | Exemplu | |
2 | 0 secunde | Exited with error status 127 | 15 | 0 | ||
3 | 0 secunde | Exited with error status 127 | 20 | 0 | ||
4 | 0 secunde | Exited with error status 127 | 20 | 0 | ||
5 | 0 secunde | Exited with error status 127 | 20 | 0 | ||
6 | 0 secunde | Exited with error status 127 | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Nr_Div_Huge 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ă.