#447
cifmid
Se citește de la tastatură un număr natural de 3
cifre, distincte. Să se afișeze pe ecran cifra din mijloc, ca valoare.
Problema | cifmid | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #41830222 | Utilizator | |
Fișier | cifmid.cpp | Dimensiune | 361 B |
Data încărcării | 06 Februarie 2023, 08:22 | Scor / rezultat | 60 puncte |
cifmid.cpp: In function 'int main()': cifmid.cpp:9:7: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] a != b != c; ^ cifmid.cpp:9:12: warning: statement has no effect [-Wunused-value] a != b != c; ^ cifmid.cpp:13:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if ((a < b < c) || (a < c < b)) ^ cifmid.cpp:13:27: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if ((a < b < c) || (a < c < b)) ^ cifmid.cpp:15:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if ((b < a < c) || (b < c < a)) ^ cifmid.cpp:15:31: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if ((b < a < c) || (b < c < a)) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifmid 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ă.