#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 | #21525511 | Utilizator | |
Fișier | numere19.cpp | Dimensiune | 3.22 KB |
Data încărcării | 04 Martie 2020, 11:46 | Scor / rezultat | 10 puncte |
numere19.cpp: In function 'void be()': numere19.cpp:30:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^ numere19.cpp: In function 'int main()': numere19.cpp:181:39: 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:182:41: 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: In function 'int getKettes(int)': numere19.cpp:75:12: warning: 'er' may be used uninitialized in this function [-Wmaybe-uninitialized] return er; ^ numere19.cpp: In function 'int getHarmas(int)': numere19.cpp:95:12: warning: 'er' may be used uninitialized in this function [-Wmaybe-uninitialized] return er; ^ numere19.cpp: In function 'void epitKov(int)': numere19.cpp:105:27: warning: 'er' may be used uninitialized in this function [-Wmaybe-uninitialized] tmp[KETTES] += ket; ^ numere19.cpp:106:27: warning: 'er' may be used uninitialized in this function [-Wmaybe-uninitialized] tmp[HARMAS] += har; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 10 |
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ă.