#1306
Calculaţi suma cuburilor cifrelor tuturor numerelor dintr-un şir.
Olimpiada Cunoaşterii
Problema | SumChef | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 1 MB
/
Stivă 0.5 MB
|
Id soluție | #57558708 | Utilizator | |
Fișier | sumchef.cpp | Dimensiune | 283 B |
Data încărcării | 04 Aprilie 2025, 15:26 | Scor / rezultat | 100 puncte |
sumchef.cpp: In function 'int main()': sumchef.cpp:5:15: warning: unused variable 'max' [-Wunused-variable] { int n,x,p,max=-1,v=0,nmax,c[1001],g,ok; long long s=0; ^ sumchef.cpp:5:22: warning: unused variable 'v' [-Wunused-variable] { int n,x,p,max=-1,v=0,nmax,c[1001],g,ok; long long s=0; ^ sumchef.cpp:5:26: warning: unused variable 'nmax' [-Wunused-variable] { int n,x,p,max=-1,v=0,nmax,c[1001],g,ok; long long s=0; ^ sumchef.cpp:5:31: warning: unused variable 'c' [-Wunused-variable] { int n,x,p,max=-1,v=0,nmax,c[1001],g,ok; long long s=0; ^ sumchef.cpp:5:39: warning: unused variable 'g' [-Wunused-variable] { int n,x,p,max=-1,v=0,nmax,c[1001],g,ok; long long s=0; ^ sumchef.cpp:5:41: warning: unused variable 'ok' [-Wunused-variable] { int n,x,p,max=-1,v=0,nmax,c[1001],g,ok; long long s=0; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0.032 secunde | OK. | 20 | 20 | ||
4 | 0.16 secunde | OK. | 20 | 20 | ||
5 | 0.308 secunde | OK. | 20 | 20 | ||
6 | 0.604 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumChef 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ă.