#3275
nrSumCifMax
Se dau 3
numere naturale, fiecare având câte două cifre. Afișați-le pe acelea care au suma cifrelor maximă.
CNFB - Concurs de pregatire, clasa a 5-a
Problema | nrSumCifMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #45613480 | Utilizator | |
Fișier | nrsumcifmax.cpp | Dimensiune | 345 B |
Data încărcării | 17 Octombrie 2023, 12:50 | Scor / rezultat | 0 puncte |
nrsumcifmax.cpp: In function 'int main()': nrsumcifmax.cpp:13:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(x+y>t+s>u+v&&x+y>u+v>s+t)cout<<x+y; ^ nrsumcifmax.cpp:13:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(x+y>t+s>u+v&&x+y>u+v>s+t)cout<<x+y; ^ nrsumcifmax.cpp:14:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(t+s>x+y>u+v&&t+s>u+v>x+y)cout<<t+s; ^ nrsumcifmax.cpp:14:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(t+s>x+y>u+v&&t+s>u+v>x+y)cout<<t+s; ^ nrsumcifmax.cpp:15:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(u+v>s+t>x+y&&u+v>x+y>s+t)cout<<u+v; ^ nrsumcifmax.cpp:15:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(u+v>s+t>x+y&&u+v>x+y>s+t)cout<<u+v; ^ nrsumcifmax.cpp:10:7: warning: 'x' is used uninitialized in this function [-Wuninitialized] a=x*10+y; ^ nrsumcifmax.cpp:10:10: warning: 'y' is used uninitialized in this function [-Wuninitialized] a=x*10+y; ^ nrsumcifmax.cpp:11:7: warning: 't' is used uninitialized in this function [-Wuninitialized] b=t*10+s; ^ nrsumcifmax.cpp:11:10: warning: 's' is used uninitialized in this function [-Wuninitialized] b=t*10+s; ^ nrsumcifmax.cpp:12:7: warning: 'u' is used uninitialized in this function [-Wuninitialized] c=u*10+v; ^ nrsumcifmax.cpp:12:10: warning: 'v' is used uninitialized in this function [-Wuninitialized] c=u*10+v; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nrSumCifMax 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ă.