#2694
MinMax2
Se dau 2
numere naturale cu exact 3
cifre fiecare, să se afișeze cel mai mare numar și cel mai mic numar scris cu o cifră din primul număr și cu o cifră din al doilea.
Problema | MinMax2 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #40684967 | Utilizator | |
Fișier | minmax2.cpp | Dimensiune | 1.76 KB |
Data încărcării | 16 Decembrie 2022, 09:27 | Scor / rezultat | 20 puncte |
minmax2.cpp: In function 'int main()': minmax2.cpp:18:9: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u>z & u>s) nr=u; ^ minmax2.cpp:19:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z>s & z>u) nr=z; ^ minmax2.cpp:20:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s>z & s>u) nr=s; ^ minmax2.cpp:21:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u1>z1 & u1>s1) nr=nr+u1*10; ^ minmax2.cpp:22:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z1>s1 & z1>u1) nr=nr+z1*10; ^ minmax2.cpp:23:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s1>z1 & s1>u1) nr=nr+s1*10; ^ minmax2.cpp:24:9: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u<z & u<s) nr1=u; ^ minmax2.cpp:25:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z<u & z<s) nr1=z; ^ minmax2.cpp:26:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s<u & s<z) nr1=s; ^ minmax2.cpp:27:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u1<z1 & u1<s1) nr1=nr1+u1*10; ^ minmax2.cpp:28:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z1<u1 & z1<s1) nr1=nr1+z1*10; ^ minmax2.cpp:29:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s1<u1 & s1<z1) nr1=nr1+s1*10; ^ minmax2.cpp:30:9: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u==z & z==s) ^ minmax2.cpp:35:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u1==z1 & z1==s1) ^ minmax2.cpp:40:9: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u==0 & z!=0 & s!=0) ^ minmax2.cpp:40:23: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u==0 & z!=0 & s!=0) ^ minmax2.cpp:45:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z==0 & u!=0 & s!=0) ^ minmax2.cpp:45:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z==0 & u!=0 & s!=0) ^ minmax2.cpp:50:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s==0 & u!=0 & z!=0) ^ minmax2.cpp:50:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s==0 & u!=0 & z!=0) ^ minmax2.cpp:56:10: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u1==0 & z1!=0 & s1!=0) ^ minmax2.cpp:56:26: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if(u1==0 & z1!=0 & s1!=0) ^ minmax2.cpp:61:15: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z1==0 & u1!=0 & s1!=0) ^ minmax2.cpp:61:31: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z1==0 & u1!=0 & s1!=0) ^ minmax2.cpp:64:30: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else nr=nr*10+u1;if(u==0 & z!=0 & s!=0) ^ minmax2.cpp:64:44: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else nr=nr*10+u1;if(u==0 & z!=0 & s!=0) ^ minmax2.cpp:69:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z==0 & u!=0 & s!=0) ^ minmax2.cpp:69:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(z==0 & u!=0 & s!=0) ^ minmax2.cpp:74:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s==0 & u!=0 & z!=0) ^ minmax2.cpp:74:28: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s==0 & u!=0 & z!=0) ^ minmax2.cpp:81:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s1==0 & u1!=0 & z1!=0) ^ minmax2.cpp:81:35: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] else if(s1==0 & u1!=0 & z1!=0) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MinMax2 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ă.