#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 | #64867537 | Utilizator | |
| Fișier | starsandbars1.cpp | Dimensiune | 1.22 KB |
| Data încărcării | 08 Iunie 2026, 14:38 | Scor/rezultat | 0 puncte |
starsandbars1.cpp: In function ‘int main()’: starsandbars1.cpp:15:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 15 | for(int i=0;b[i]!='\0';i++) | ^~~ starsandbars1.cpp:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 17 | int k=0,t=0; | ^~~ starsandbars1.cpp:29:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 29 | if(j>=0) | ^~ starsandbars1.cpp:35:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 35 | if(t!=0) | ^~ starsandbars1.cpp:43:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 43 | if(i>=0) | ^~ starsandbars1.cpp:50:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 50 | if(t!=0) | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 11 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 12 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 13 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
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ă.