#1311
Se citește de la tastatură un număr natural de 3 cifre. Să se stabilească dacă are toate cifrele egale.
| Problema | CifEgale | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64236840 | Utilizator | |
| Fișier | cifegale.cpp | Dimensiune | 234 B |
| Data încărcării | 24 Aprilie 2026, 14:37 | Scor/rezultat | 0 puncte |
cifegale.cpp: In function ‘int main()’: cifegale.cpp:11:10: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses] 11 | if(cu==cz==cs) | ~~^~~~ cifegale.cpp:13:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 13 | else | ^~~~ cifegale.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 15 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 3 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CifEgale 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ă.