#574
Să se determine câte grafuri orientate complete cu n noduri există.
| Problema | Complet | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #58042618 | Utilizator | |
| Fișier | complet.cpp | Dimensiune | 5.69 KB |
| Data încărcării | 10 Mai 2025, 15:18 | Scor/rezultat | 100 puncte |
complet.cpp: In member function 'BigInt BigInt::operator+(BigInt)': complet.cpp:63:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i < cifre.size()) ^ complet.cpp:65:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i < a.cifre.size()) ^ complet.cpp: In member function 'BigInt BigInt::operator-(BigInt)': complet.cpp:83:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < cifre.size(); i++) ^ complet.cpp:87:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i < a.cifre.size()) ^ complet.cpp: In member function 'bool BigInt::operator==(BigInt)': complet.cpp:183:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < cifre.size(); i++) ^ complet.cpp: In member function 'BigInt BigInt::operator*(BigInt)': complet.cpp:198:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < cifre.size(); i++) ^ complet.cpp:201:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < a.cifre.size() || carry; j++) ^ complet.cpp:205:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (j < a.cifre.size() ? (long long)cifre[i] * a.cifre[j] : 0); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 3 | 0 secunde | OK. | 20 | 20 | ||
| 4 | 0 secunde | OK. | 20 | 20 | ||
| 5 | 0 secunde | OK. | 20 | 20 | ||
| 6 | 0.028 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Complet 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ă.