#2747
Log
Se dau numerele n
și m
. Să se determine exponentul la care se ridică n
pentru a obține m
.
Problema | Log | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16297361 | Utilizator | |
Fișier | log.c | Dimensiune | 186 B |
Data încărcării | 06 Iulie 2019, 14:32 | Scor / rezultat | 20 puncte |
log.c: In function 'main': log.c:6:5: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'double *' [-Wformat=] scanf("%ld %ld", &n,&m); ^ log.c:6:5: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'double *' [-Wformat=] log.c:8:8: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'double' [-Wformat=] printf("%ld", exp); ^ log.c:6:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld", &n,&m); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Log 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ă.