#559
5numere
Se dau 5 numere distincte. Să se determine suma celor mai mari 3 dintre ele.
Problema | 5numere | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51034535 | Utilizator | |
Fișier | numere.cpp | Dimensiune | 1.19 KB |
Data încărcării | 20 Mai 2024, 16:04 | Scor / rezultat | 80 puncte |
numere.cpp: In function 'int main()': numere.cpp:10:9: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:24: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:29: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:39: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:44: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:49: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^ numere.cpp:10:54: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a==b&a==c&a==d&a==e&b==c&b==d&b==e&c==d&c==e&d==e) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 80 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema 5numere 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ă.