#2166
numere19
Fie a
și b
două numere naturale nenule. Scrieți un program care determină numărul de numere naturale formate din exact a
cifre care au fiecare produsul cifrelor egal cu b
și afișează în fișierul de ieșire restul împărțirii valorii determinate la numărul 9973
.
OJI 2007
Problema | numere19 | Operații I/O |
numere19.in /numere19.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #35508207 | Utilizator | |
Fișier | numere19.cpp | Dimensiune | 2.00 KB |
Data încărcării | 11 Martie 2022, 19:59 | Scor / rezultat | 80 puncte |
numere19.cpp: In function 'void tipar(int)': numere19.cpp:11:30: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=] printf("solutia %ld:",sol); ^ numere19.cpp:13:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d ",st[i]); ^ numere19.cpp: In function 'int main()': numere19.cpp:80:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d %d",&a,&b); ^ numere19.cpp:80:24: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] numere19.cpp:107:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n",sol); ^ numere19.cpp:78:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("numere19.in","r",stdin); ^ numere19.cpp:79:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("numere19.out","w",stdout); ^ numere19.cpp:80:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&a,&b); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
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.004 secunde | OK. | 10 | 10 | ||
6 | 0.032 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0.008 secunde | OK. | 10 | 10 | ||
8 | 0.044 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 80 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema numere19 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ă.