#3775
Se dau N numere naturale a[1], a[2], ..., a[N] şi un număr natural nenul M. Să se determine numărul perechilor de indici (i, j), cu i < j, cu proprietatea că numărul a[i]*a[j]+a[i]+a[j] este divizibil cu M.
Lot informatică 2021
| Problema | prosum | Operații I/O |
prosum.in/prosum.out
|
|---|---|---|---|
| Limita timp | 0.7 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62782835 | Utilizator | |
| Fișier | prosum.cpp | Dimensiune | 2.83 KB |
| Data încărcării | 02 Februarie 2026, 13:02 | Scor/rezultat | 60 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 1 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
| 8 | 0.004 secunde | OK. | 2 | 2 | ||
| 9 | 0.004 secunde | OK. | 2 | 2 | ||
| 10 | 0 secunde | OK. | 2 | 2 | ||
| 11 | 0 secunde | OK. | 2 | 2 | ||
| 12 | 0 secunde | OK. | 2 | 2 | ||
| 13 | 0 secunde | OK. | 2 | 2 | ||
| 14 | 0 secunde | OK. | 2 | 2 | ||
| 15 | 0 secunde | OK. | 2 | 2 | ||
| 16 | 0 secunde | OK. | 2 | 2 | ||
| 17 | 0 secunde | OK. | 2 | 2 | ||
| 18 | 0 secunde | OK. | 2 | 2 | ||
| 19 | 0 secunde | OK. | 2 | 2 | ||
| 20 | 0.016 secunde | OK. | 3 | 3 | ||
| 21 | 0.024 secunde | OK. | 3 | 3 | ||
| 22 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 23 | 0.04 secunde | OK. | 3 | 3 | ||
| 24 | 0.048 secunde | OK. | 3 | 3 | ||
| 25 | 0.06 secunde | OK. | 3 | 3 | ||
| 26 | 0.076 secunde | OK. | 3 | 3 | ||
| 27 | 0.08 secunde | OK. | 3 | 3 | ||
| 28 | 0.068 secunde | OK. | 3 | 3 | ||
| 29 | 0.068 secunde | Raspuns gresit. | 3 | 0 | ||
| 30 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 31 | 0.032 secunde | Raspuns gresit. | 3 | 0 | ||
| 32 | 0.048 secunde | Raspuns gresit. | 3 | 0 | ||
| 33 | 0.06 secunde | Raspuns gresit. | 3 | 0 | ||
| 34 | 0.076 secunde | Raspuns gresit. | 3 | 0 | ||
| 35 | 0.092 secunde | Raspuns gresit. | 3 | 0 | ||
| 36 | 0.116 secunde | OK. | 3 | 3 | ||
| 37 | 0.168 secunde | OK. | 3 | 3 | ||
| 38 | 0.2 secunde | OK. | 3 | 3 | ||
| 39 | 0.216 secunde | OK. | 3 | 3 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema prosum 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ă.