#1832
pd
Se dă un număr natural s
. Determinaţi, în ordine lexicografică, toate modalităţile de a-l scrie pe s
ca produs de divizori proprii distincți ai lui s
.
Problema | pd | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.05 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #8874999 | Utilizator | |
Fișier | pd.cpp | Dimensiune | 837 B |
Data încărcării | 16 Martie 2018, 11:00 | Scor / rezultat | 60 puncte |
pd.cpp: In function 'void divizori()': pd.cpp:7:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(d=2; d*d<s; d++) ^ pd.cpp:15:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(d*d==s) ^ pd.cpp: In function 'void bt(int, int)': pd.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=pos; i<=nd && p*v[i]<=s; i++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0.004 secunde | OK. | 10 | 10 | ||
8 | 0.008 secunde | OK. | 20 | 20 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema pd 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ă.