#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 | #64248717 | Utilizator | |
| Fișier | douazecidouazeci.cpp | Dimensiune | 739 B |
| Data încărcării | 25 Aprilie 2026, 17:34 | Scor/rezultat | 76 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:16:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 16 | for (int j=0; j<n.size(); j++){ | ~^~~~~~~~~ douazecidouazeci.cpp:17:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 17 | for (int k=0; k<n.size(); k++){ | ~^~~~~~~~~ douazecidouazeci.cpp:18:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 18 | 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.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 4 | 0.001 secunde | OK. | 4 | 4 | ||
| 5 | 0.009 secunde | OK. | 4 | 4 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 7 | 0.004 secunde | OK. | 4 | 4 | ||
| 8 | 0.026 secunde | OK. | 4 | 4 | ||
| 9 | 0.051 secunde | OK. | 4 | 4 | ||
| 10 | 0.004 secunde | OK. | 4 | 4 | ||
| 11 | 0.029 secunde | OK. | 4 | 4 | ||
| 12 | 0.089 secunde | OK. | 4 | 4 | ||
| 13 | 0.09 secunde | OK. | 4 | 4 | ||
| 14 | 0.093 secunde | OK. | 4 | 4 | ||
| 15 | 0.081 secunde | OK. | 4 | 4 | ||
| 16 | 0.081 secunde | OK. | 4 | 4 | ||
| 17 | 0.081 secunde | OK. | 4 | 4 | ||
| 18 | 0.08 secunde | OK. | 4 | 4 | ||
| 19 | 0.081 secunde | Raspuns gresit. | 4 | 0 | ||
| 20 | 0.08 secunde | OK. | 4 | 4 | ||
| 21 | 0.081 secunde | Raspuns gresit. | 4 | 0 | ||
| 22 | 0.08 secunde | Raspuns gresit. | 4 | 0 | ||
| 23 | 0.001 secunde | OK. | 4 | 4 | ||
| 24 | 0.001 secunde | OK. | 4 | 4 | ||
| 25 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| Punctaj total | 76 | |||||
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ă.