#695
SumAll
Fie N
un număr natural format din cifre nenule.
Să se determine suma tuturor numerelor distincte ce se pot forma cu toate cifrele numărului N
.
Problema | SumAll | Operații I/O |
sumall.in /sumall.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 4 MB
/
Stivă 4 MB
|
Id soluție | #50513521 | Utilizator | |
Fișier | sumall.cpp | Dimensiune | 1.72 KB |
Data încărcării | 12 Aprilie 2024, 11:33 | Scor / rezultat | 85 puncte |
sumall.cpp: In function 'long long unsigned int ad(long long unsigned int*, long long unsigned int&, long long unsigned int*, long long unsigned int&)': sumall.cpp:29:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ sumall.cpp: In function 'long long unsigned int mt(long long unsigned int*, long long unsigned int&, long long unsigned int)': sumall.cpp:56:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ sumall.cpp: In function 'void numr(long long unsigned int*, long long unsigned int, long long unsigned int)': sumall.cpp:60:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= n; i ++) a[i] = x; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | ||
2 | 0 secunde | OK. | 5 | 5 | ||
3 | 0 secunde | OK. | 5 | 5 | ||
4 | 0 secunde | OK. | 5 | 5 | ||
5 | 0 secunde | OK. | 5 | 5 | ||
6 | 0 secunde | OK. | 5 | 5 | ||
7 | 0 secunde | OK. | 5 | 5 | ||
8 | 0 secunde | OK. | 5 | 5 | ||
9 | 0 secunde | OK. | 5 | 5 | ||
10 | 0 secunde | OK. | 5 | 5 | ||
11 | 0 secunde | OK. | 5 | 5 | ||
12 | 0 secunde | OK. | 5 | 5 | ||
13 | 0 secunde | OK. | 5 | 5 | ||
14 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
15 | 0 secunde | OK. | 5 | 5 | ||
16 | 0 secunde | OK. | 5 | 5 | ||
17 | 0 secunde | OK. | 5 | 5 | ||
18 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
20 | 0 secunde | OK. | 5 | 5 | ||
Punctaj total | 85 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumAll 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ă.