#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 |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64773203 | Utilizator | |
| Fișier | nrcif.cpp | Dimensiune | 263 B |
| Data încărcării | 29 Mai 2026, 10:54 | Scor/rezultat | 60 puncte |
nrcif.cpp: In function ‘int main()’: nrcif.cpp:11:17: warning: comparison of constant ‘100’ with boolean expression is always true [-Wbool-compare] 11 | if(10<=x<100) | ~~~~~^~~~ nrcif.cpp:11:14: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses] 11 | if(10<=x<100) | ~~^~~ nrcif.cpp:14:22: warning: comparison of constant ‘1000’ with boolean expression is always true [-Wbool-compare] 14 | if(100<=x<1000) | ~~~~~~^~~~~ nrcif.cpp:14:19: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses] 14 | if(100<=x<1000) | ~~~^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 60 | |||||
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ă.