#3742
Gigel are n bile și k cutii. În câte moduri poate plasa Gigel bilele în cutii, știind că în fiecare cutie trebuie plasată cel puțin o bilă.
| Problema | StarsAndBars2 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #65023904 | Utilizator | |
| Fișier | starsandbars2.cpp | Dimensiune | 2.75 KB |
| Data încărcării | 18 Iulie 2026, 15:39 | Scor/rezultat | 100 puncte |
starsandbars2.cpp: In member function ‘void NumarMare::multiply(int)’: starsandbars2.cpp:65:27: 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++){ | ~~^~~~~~~~~~~~~~ starsandbars2.cpp: In member function ‘void NumarMare::multiply(const NumarMare&)’: starsandbars2.cpp:84:27: 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++){ | ~~^~~~~~~~~~~~~~ starsandbars2.cpp:88:31: 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.002 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.001 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.001 secunde | OK. | 10 | 10 | ||
| 8 | 0.001 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.002 secunde | OK. | 10 | 10 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema StarsAndBars2 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ă.