#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53350487 | Utilizator | |
Fișier | douazecidouazeci.cpp | Dimensiune | 612 B |
Data încărcării | 25 Octombrie 2024, 13:50 | Scor / rezultat | 88 puncte |
douazecidouazeci.cpp: In function 'int main()': douazecidouazeci.cpp:17:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:94: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:120: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:145: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:182: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:220: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:257: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^ douazecidouazeci.cpp:17:285: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v[2]>=1 and v[1010]>=1 or v[4]>=1 and v[505]>=1 or v[5]>=1 and v[404]>=1 or v[10]>=1 and v[202]>=1 or v[20]>=1 and v[101]>=1 or v[2]>=2 and v[505]>=1 or v[2]>=1 and v[5]>=1 and v[202]>=1 or v[2]>=1 and v[10]>=1 and v[101]>=1 or v[4]>=1 and v[5]>=1 and v[101]>=1 or v[2020]>=1 and v[1]>=1 ){ ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 4 | 4 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
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 | Raspuns gresit. | 4 | 0 | ||
8 | 0 secunde | OK. | 4 | 4 | ||
9 | 0 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | OK. | 4 | 4 | ||
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 | Raspuns gresit. | 4 | 0 | ||
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 | 88 |
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ă.