#559
5numere
Se dau 5 numere distincte. Să se determine suma celor mai mari 3 dintre ele.
Problema | 5numere | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13217165 | Utilizator | |
Fișier | 5numere.cpp | Dimensiune | 765 B |
Data încărcării | 14 Ianuarie 2019, 17:40 | Scor / rezultat | 100 puncte |
5numere.cpp: In function 'int main()': 5numere.cpp:9:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a4&a1>a5&a2>a4&a2>a5&a3>a4&a3>a5) ^ 5numere.cpp:9:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a4&a1>a5&a2>a4&a2>a5&a3>a4&a3>a5) ^ 5numere.cpp:9:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a4&a1>a5&a2>a4&a2>a5&a3>a4&a3>a5) ^ 5numere.cpp:9:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a4&a1>a5&a2>a4&a2>a5&a3>a4&a3>a5) ^ 5numere.cpp:9:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a4&a1>a5&a2>a4&a2>a5&a3>a4&a3>a5) ^ 5numere.cpp:11:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a5&a2>a3&a2>a5&a4>a3&a4>a5) ^ 5numere.cpp:11:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a5&a2>a3&a2>a5&a4>a3&a4>a5) ^ 5numere.cpp:11:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a5&a2>a3&a2>a5&a4>a3&a4>a5) ^ 5numere.cpp:11:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a5&a2>a3&a2>a5&a4>a3&a4>a5) ^ 5numere.cpp:11:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a5&a2>a3&a2>a5&a4>a3&a4>a5) ^ 5numere.cpp:13:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a4&a2>a3&a2>a4&a5>a3&a5>a4) ^ 5numere.cpp:13:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a4&a2>a3&a2>a4&a5>a3&a5>a4) ^ 5numere.cpp:13:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a4&a2>a3&a2>a4&a5>a3&a5>a4) ^ 5numere.cpp:13:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a4&a2>a3&a2>a4&a5>a3&a5>a4) ^ 5numere.cpp:13:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a3&a1>a4&a2>a3&a2>a4&a5>a3&a5>a4) ^ 5numere.cpp:15:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a5&a3>a2&a3>a5&a4>a2&a4>a5) ^ 5numere.cpp:15:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a5&a3>a2&a3>a5&a4>a2&a4>a5) ^ 5numere.cpp:15:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a5&a3>a2&a3>a5&a4>a2&a4>a5) ^ 5numere.cpp:15:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a5&a3>a2&a3>a5&a4>a2&a4>a5) ^ 5numere.cpp:15:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a5&a3>a2&a3>a5&a4>a2&a4>a5) ^ 5numere.cpp:17:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a4&a3>a2&a3>a4&a5>a2&a5>a4) ^ 5numere.cpp:17:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a4&a3>a2&a3>a4&a5>a2&a5>a4) ^ 5numere.cpp:17:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a4&a3>a2&a3>a4&a5>a2&a5>a4) ^ 5numere.cpp:17:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a4&a3>a2&a3>a4&a5>a2&a5>a4) ^ 5numere.cpp:17:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a1>a2&a1>a4&a3>a2&a3>a4&a5>a2&a5>a4) ^ 5numere.cpp:19:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a5&a3>a1&a3>a5&a4>a1&a4>a5) ^ 5numere.cpp:19:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a5&a3>a1&a3>a5&a4>a1&a4>a5) ^ 5numere.cpp:19:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a5&a3>a1&a3>a5&a4>a1&a4>a5) ^ 5numere.cpp:19:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a5&a3>a1&a3>a5&a4>a1&a4>a5) ^ 5numere.cpp:19:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a5&a3>a1&a3>a5&a4>a1&a4>a5) ^ 5numere.cpp:21:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a4&a3>a1&a3>a4&a5>a1&a5>a4) ^ 5numere.cpp:21:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a4&a3>a1&a3>a4&a5>a1&a5>a4) ^ 5numere.cpp:21:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a4&a3>a1&a3>a4&a5>a1&a5>a4) ^ 5numere.cpp:21:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a4&a3>a1&a3>a4&a5>a1&a5>a4) ^ 5numere.cpp:21:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a4&a3>a1&a3>a4&a5>a1&a5>a4) ^ 5numere.cpp:23:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a3>a1&a3>a2&a4>a1&a4>a2&a5>a1&a5>a2) ^ 5numere.cpp:23:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a3>a1&a3>a2&a4>a1&a4>a2&a5>a1&a5>a2) ^ 5numere.cpp:23:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a3>a1&a3>a2&a4>a1&a4>a2&a5>a1&a5>a2) ^ 5numere.cpp:23:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a3>a1&a3>a2&a4>a1&a4>a2&a5>a1&a5>a2) ^ 5numere.cpp:23:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a3>a1&a3>a2&a4>a1&a4>a2&a5>a1&a5>a2) ^ 5numere.cpp:25:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a3&a4>a1&a4>a3&a5>a1&a5>a3) ^ 5numere.cpp:25:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a3&a4>a1&a4>a3&a5>a1&a5>a3) ^ 5numere.cpp:25:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a3&a4>a1&a4>a3&a5>a1&a5>a3) ^ 5numere.cpp:25:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a3&a4>a1&a4>a3&a5>a1&a5>a3) ^ 5numere.cpp:25:40: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(a2>a1&a2>a3&a4>a1&a4>a3&a5>a1&a5>a3) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
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 | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
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ă.