#449
Se citește de la tastatură un număr natural de maxim 3
cifre. Să se determine câte cifre are.
Problema | nrcif | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #24968354 | Utilizator | |
Fișier | nrcif.cpp | Dimensiune | 289 B |
Data încărcării | 24 Octombrie 2020, 14:07 | Scor / rezultat | 20 puncte |
nrcif.cpp: In function 'int main()': nrcif.cpp:10:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (0<=x<=9) ^ nrcif.cpp:14:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (10<=x<=99) ^ nrcif.cpp:17:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (100<=x<=999) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
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 nrcif 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ă.