#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58097603 | Utilizator | |
Fișier | minmax2.cpp | Dimensiune | 1.76 KB |
Data încărcării | 14 Mai 2025, 08:14 | Scor / rezultat | 100 puncte |
minmax2.cpp: In function 'int main()': minmax2.cpp:28:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(a%10<mina) ^ minmax2.cpp:38:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(a/10%10<mina) ^ minmax2.cpp:48:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(a/100<mina) ^ minmax2.cpp:74:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(b%10<minb) ^ minmax2.cpp:84:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(b/10%10<minb) ^ minmax2.cpp:94:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(b/100<minb) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
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ă.