#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 | #64164005 | Utilizator | |
| Fișier | complet.cpp | Dimensiune | 195 B |
| Data încărcării | 21 Aprilie 2026, 10:29 | Scor/rezultat | 60 puncte |
In file included from complet.cpp:2: In function ‘constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up) [with _Tp = int; _Up = long long int]’, inlined from ‘int main()’ at complet.cpp:12:6: /usr/include/c++/13/cmath:1073:17: warning: ‘d’ may be used uninitialized [-Wmaybe-uninitialized] 1073 | return pow(__type(__x), __type(__y)); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ complet.cpp: In function ‘int main()’: complet.cpp:6:14: note: ‘d’ was declared here 6 | {long long c,d,n; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 60 | |||||
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ă.