#943
Suma4
Se dă n
un număr natural nenul. Să se afle ultima cifră a sumei S=1
4
+ 2
4
+ 3
4
+ ... + n
4
.
Problema | Suma4 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51566257 | Utilizator | |
Fișier | suma4.cpp | Dimensiune | 324 B |
Data încărcării | 12 Iulie 2024, 16:16 | Scor / rezultat | 0 puncte |
suma4.cpp: In function 'int main()': suma4.cpp:11:29: warning: left operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:32: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:35: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:38: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:41: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:44: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:47: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:50: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^ suma4.cpp:11:53: warning: right operand of comma operator has no effect [-Wunused-value] int* lista = new int[0, 1, 6, 1, 6, 5, 6, 1, 6, 1]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | Depășit | Limita de timp depășită | 20 | 0 | ||
5 | Depășit | Limita de timp depășită | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Suma4 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ă.