#3304
douazecidouazeci
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 | #58532599 | Utilizator | |
Fișier | douazecidouazeci.cpp | Dimensiune | 440 B |
Data încărcării | 15 Iunie 2025, 13:17 | Scor / rezultat | 96 puncte |
douazecidouazeci.cpp: In function 'int main()': douazecidouazeci.cpp:12:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2020] || v[1010] && v[2] || v[505] && v[4] || v[505] && v[2]>1 || v[101] && v[20] || v[101] && v[4] && v[5] ^ douazecidouazeci.cpp:12:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2020] || v[1010] && v[2] || v[505] && v[4] || v[505] && v[2]>1 || v[101] && v[20] || v[101] && v[4] && v[5] ^ douazecidouazeci.cpp:12:63: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2020] || v[1010] && v[2] || v[505] && v[4] || v[505] && v[2]>1 || v[101] && v[20] || v[101] && v[4] && v[5] ^ douazecidouazeci.cpp:12:83: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2020] || v[1010] && v[2] || v[505] && v[4] || v[505] && v[2]>1 || v[101] && v[20] || v[101] && v[4] && v[5] ^ douazecidouazeci.cpp:12:110: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2020] || v[1010] && v[2] || v[505] && v[4] || v[505] && v[2]>1 || v[101] && v[20] || v[101] && v[4] && v[5] ^ douazecidouazeci.cpp:13:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || v[101] && v[2]>1 && v[5] || v[101] && v[10] && v[2] || v[202] && v[10] || v[202] && v[5] && v[2]) ^ douazecidouazeci.cpp:13:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || v[101] && v[2]>1 && v[5] || v[101] && v[10] && v[2] || v[202] && v[10] || v[202] && v[5] && v[2]) ^ douazecidouazeci.cpp:13:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || v[101] && v[2]>1 && v[5] || v[101] && v[10] && v[2] || v[202] && v[10] || v[202] && v[5] && v[2]) ^ douazecidouazeci.cpp:13:100: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || v[101] && v[2]>1 && v[5] || v[101] && v[10] && v[2] || v[202] && v[10] || v[202] && v[5] && v[2]) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 4 | 4 | Exemplu | |
2 | 0 secunde | OK. | 4 | 4 | ||
3 | 0 secunde | OK. | 4 | 4 | ||
4 | 0 secunde | OK. | 4 | 4 | ||
5 | 0 secunde | OK. | 4 | 4 | ||
6 | 0 secunde | OK. | 4 | 4 | ||
7 | 0 secunde | OK. | 4 | 4 | ||
8 | 0 secunde | OK. | 4 | 4 | ||
9 | 0 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
11 | 0 secunde | OK. | 4 | 4 | ||
12 | 0 secunde | OK. | 4 | 4 | ||
13 | 0 secunde | OK. | 4 | 4 | ||
14 | 0 secunde | OK. | 4 | 4 | ||
15 | 0 secunde | OK. | 4 | 4 | ||
16 | 0 secunde | OK. | 4 | 4 | ||
17 | 0 secunde | OK. | 4 | 4 | ||
18 | 0 secunde | OK. | 4 | 4 | ||
19 | 0 secunde | OK. | 4 | 4 | ||
20 | 0 secunde | OK. | 4 | 4 | ||
21 | 0 secunde | OK. | 4 | 4 | ||
22 | 0 secunde | OK. | 4 | 4 | ||
23 | 0 secunde | OK. | 4 | 4 | ||
24 | 0 secunde | OK. | 4 | 4 | ||
25 | 0 secunde | OK. | 4 | 4 | ||
Punctaj total | 96 |
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ă.