#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58329199 | Utilizator | |
Fișier | douazecidouazeci.cpp | Dimensiune | 671 B |
Data încărcării | 27 Mai 2025, 14:57 | Scor / rezultat | 24 puncte |
douazecidouazeci.cpp: In function 'int main()': douazecidouazeci.cpp:12:24: warning: value computed is not used [-Wunused-value] if (v[2020]>0) cout<"DA"; ^ douazecidouazeci.cpp:13:15: warning: array subscript is above array bounds [-Warray-bounds] if (v[1010]>0 && v[2]>0) cout<<"DA"; ^ douazecidouazeci.cpp:14:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[505]>0 && v[4]>0) cout<<"DA"; ^ douazecidouazeci.cpp:15:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[404]>0 && v[5]>0) cout<<"DA"; ^ douazecidouazeci.cpp:16:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[202]>0 && v[10]>0) cout<<"DA"; ^ douazecidouazeci.cpp:17:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[101]>0 && v[20]>0) cout<<"DA"; ^ douazecidouazeci.cpp:18:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[101]>0 && v[4]>0 && v[5]>0) cout<<"DA"; ^ douazecidouazeci.cpp:19:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[101]>0 && v[2]>0 && v[10]>0) cout<<"DA"; ^ douazecidouazeci.cpp:20:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[202]>0 && v[2]>0 && v[2]>0) cout<<"DA"; ^ douazecidouazeci.cpp:21:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[505]>0 && v[2]>0 && v[2]>0) cout<<"DA"; ^ douazecidouazeci.cpp:22:14: warning: array subscript is above array bounds [-Warray-bounds] if (v[202]>0 && v[5]>0 && v[2]>0) cout<<"DA"; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 4 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
4 | 0 secunde | OK. | 4 | 4 | ||
5 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
6 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
9 | 0 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | OK. | 4 | 4 | ||
11 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
12 | 0 secunde | OK. | 4 | 4 | ||
13 | 0 secunde | OK. | 4 | 4 | ||
14 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
15 | 0 secunde | OK. | 4 | 4 | ||
16 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
17 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
18 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
19 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
20 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
21 | 0 secunde | Caught fatal signal 11 | 4 | 0 | ||
22 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
23 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
24 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
25 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
Punctaj total | 24 |
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ă.