#1660
Dându-se un scor de fotbal, să se determine în câte moduri poți ajunge de la 0-0
la acel scor.
Problema | Fotbal | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.25 secunde | Limita memorie |
Total: 32 MB
/
Stivă 32 MB
|
Id soluție | #56855021 | Utilizator | |
Fișier | fotbal.cpp | Dimensiune | 674 B |
Data încărcării | 08 Martie 2025, 11:29 | Scor / rezultat | 0 puncte |
fotbal.cpp: In function 'void orar()': fotbal.cpp:12:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(start[i]>=start[j] && start[i]<=stop[j] || start[j]>=start[i] && start[j]<=stop[i] || stop[i]>=start[j] && stop[i]<=stop[j] || stop[j]>=start[i] && stop[j]<=stop[i]) ^ fotbal.cpp:12:116: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(start[i]>=start[j] && start[i]<=stop[j] || start[j]>=start[i] && start[j]<=stop[i] || stop[i]>=start[j] && stop[i]<=stop[j] || stop[j]>=start[i] && stop[j]<=stop[i]) ^ fotbal.cpp:12:157: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(start[i]>=start[j] && start[i]<=stop[j] || start[j]>=start[i] && start[j]<=stop[i] || stop[i]>=start[j] && stop[i]<=stop[j] || stop[j]>=start[i] && stop[j]<=stop[i]) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Fotbal 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ă.