#2925
Se dă numărul natural n. Să se afișeze \( {(n!)}^{n} \).
| Problema | FactorialnHard | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.53 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64477765 | Utilizator | |
| Fișier | factorialnhard.cpp | Dimensiune | 1.50 KB |
| Data încărcării | 09 Mai 2026, 17:02 | Scor/rezultat | 100 puncte |
factorialnhard.cpp: In function ‘bignum multiply_small(bignum&, int)’: factorialnhard.cpp:51:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 51 | for (int i = 0; i < x.size() or carry; ++i) { | ~~^~~~~~~~~~ factorialnhard.cpp:52:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 52 | if (i == x.size()) x.push_back(0); | ~~^~~~~~~~~~~ factorialnhard.cpp: In function ‘bignum multiply_big(bignum&, bignum&)’: factorialnhard.cpp:63:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 63 | for (int i = 0; i < x.size(); ++i) { | ~~^~~~~~~~~~ factorialnhard.cpp:65:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 65 | for (int j = 0; j < y.size() or carry; ++j) { | ~~^~~~~~~~~~ factorialnhard.cpp:67:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 67 | if (j < y.size()) cif = y[j]; | ~~^~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.013 secunde | OK. | 20 | 20 | ||
| 4 | 0.082 secunde | OK. | 20 | 20 | ||
| 5 | 0.289 secunde | OK. | 20 | 20 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FactorialnHard 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ă.