#3932
Se dă un număr natural nenul n
. Să se elimine din n
toate zerourile cu care se termină n
.
Problema | stergeZerouri | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57576491 | Utilizator | |
Fișier | stergezerouri.cpp | Dimensiune | 303 B |
Data încărcării | 05 Aprilie 2025, 17:50 | Scor / rezultat | 100 puncte |
stergezerouri.cpp: In function 'int rezultat(long long int)': stergezerouri.cpp:9:17: warning: unused variable 'u' [-Wunused-variable] int u=a%10; ^ stergezerouri.cpp: In function 'int main()': stergezerouri.cpp:21:30: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=] printf("%lld",rezultat(a)); ^ stergezerouri.cpp: In function 'int rezultat(long long int)': stergezerouri.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ stergezerouri.cpp: In function 'int main()': stergezerouri.cpp:20:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&a); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema stergeZerouri 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ă.