#4110
Se dă un vector cu n numere naturale. Să se determine câte dintre perechile de elemente din vector au aceeași sumă a divizorilor.
| Problema | NumarareSD | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64298935 | Utilizator | |
| Fișier | numararesd.cpp | Dimensiune | 554 B |
| Data încărcării | 28 Aprilie 2026, 15:06 | Scor/rezultat | 0 puncte |
numararesd.cpp: In function ‘int SumaDivizori(int)’: numararesd.cpp:8:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 8 | if(n%d==0) | ^~ numararesd.cpp:10:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 10 | if(d*d!=n) | ^~ numararesd.cpp: In function ‘int main()’: numararesd.cpp:19:4: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 19 | for(i=1;i<=n;i++) | ^~~ numararesd.cpp:21:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | a[i]=SumaDivizori(V[i]); | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NumarareSD 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ă.