#3304
Vasilica şi Viorica au primit cadou de la moşul un joc cu n jetoane pe care sunt scrise nişte numere. Cerinţa jocului este să afle dacă se pot alege câteva jetoane astfel încât produsul numerelor să fie 2020.
NeuroN
| Problema | douazecidouazeci | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64248806 | Utilizator | |
| Fișier | douazecidouazeci.cpp | Dimensiune | 2.13 KB |
| Data încărcării | 25 Aprilie 2026, 17:44 | Scor/rezultat | 64 puncte |
douazecidouazeci.cpp: In function ‘int main()’: douazecidouazeci.cpp:15:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | for (int i=0; i<n.size(); i++){ | ~^~~~~~~~~ douazecidouazeci.cpp:19:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 19 | for (int j=0; j<n.size(); j++){ | ~^~~~~~~~~ douazecidouazeci.cpp:23:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 23 | for (int k=0; k<n.size(); k++){ | ~^~~~~~~~~ douazecidouazeci.cpp:27:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 27 | for (int l=0; l<n.size(); l++){ | ~^~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 4 | 4 | Exemplu | |
| 2 | 0.001 secunde | OK. | 4 | 4 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 4 | 0 | ||
| 4 | 0.002 secunde | OK. | 4 | 4 | ||
| 5 | 0.075 secunde | OK. | 4 | 4 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 7 | 0.001 secunde | OK. | 4 | 4 | ||
| 8 | 0.001 secunde | OK. | 4 | 4 | ||
| 9 | 0.001 secunde | OK. | 4 | 4 | ||
| 10 | 0.001 secunde | OK. | 4 | 4 | ||
| 11 | 0.001 secunde | OK. | 4 | 4 | ||
| 12 | 0.001 secunde | OK. | 4 | 4 | ||
| 13 | 0.001 secunde | OK. | 4 | 4 | ||
| 14 | 0.002 secunde | OK. | 4 | 4 | ||
| 15 | 0.002 secunde | OK. | 4 | 4 | ||
| 16 | 0.001 secunde | OK. | 4 | 4 | ||
| 17 | 0.001 secunde | OK. | 4 | 4 | ||
| 18 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 19 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 20 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 21 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 22 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 23 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 24 | 0.001 secunde | OK. | 4 | 4 | ||
| 25 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| Punctaj total | 64 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema douazecidouazeci 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ă.