#3741
Gigel are n bile și k cutii. În câte moduri poate plasa Gigel bilele în cutii, știind că pot rămâne și cutii goale.
| Problema | StarsAndBars1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #65020227 | Utilizator | |
| Fișier | starsandbars1.cpp | Dimensiune | 2.34 KB |
| Data încărcării | 16 Iulie 2026, 16:11 | Scor/rezultat | 100 puncte |
starsandbars1.cpp: In member function ‘void NumarMare::multiply(int)’: starsandbars1.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 i = 0; i < cifre.size(); i++){ | ~~^~~~~~~~~~~~~~ starsandbars1.cpp: In member function ‘void NumarMare::multiply(const NumarMare&)’: starsandbars1.cpp:84:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 84 | for (int i = 0; i < cifre.size(); i++){ | ~~^~~~~~~~~~~~~~ starsandbars1.cpp:88:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 88 | for (int j = 0; j < b.cifre.size(); j++){ | ~~^~~~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0.001 secunde | OK. | 5 | 5 | ||
| 3 | 0.001 secunde | OK. | 5 | 5 | ||
| 4 | 0.001 secunde | OK. | 5 | 5 | ||
| 5 | 0.002 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.001 secunde | OK. | 10 | 10 | ||
| 8 | 0.002 secunde | OK. | 5 | 5 | ||
| 9 | 0.002 secunde | OK. | 5 | 5 | ||
| 10 | 0.001 secunde | OK. | 10 | 10 | ||
| 11 | 0.002 secunde | OK. | 10 | 10 | ||
| 12 | 0.001 secunde | OK. | 10 | 10 | ||
| 13 | 0.001 secunde | OK. | 10 | 10 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema StarsAndBars1 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ă.