#2585
Se dau două numere n (întreg pe 32 de biți cu semn) și k natural. Aflați valoarea obținută cu ultimii k biți ai lui n.
| Problema | getbymask | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #42103493 | Utilizator | |
| Fișier | getbymask.c | Dimensiune | 231 B |
| Data încărcării | 17 Februarie 2023, 12:39 | Scor/rezultat | 0 puncte |
getbymask.c: In function 'main': getbymask.c:4:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ getbymask.c:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Exited with error status 1 | 10 | 0 | ||
| 1 | 0 secunde | Exited with error status 1 | 10 | 0 | ||
| 2 | 0 secunde | Exited with error status 2 | 10 | 0 | ||
| 3 | 0 secunde | Exited with error status 2 | 10 | 0 | ||
| 4 | 0 secunde | Exited with error status 3 | 10 | 0 | ||
| 5 | 0 secunde | Exited with error status 2 | 10 | 0 | ||
| 6 | 0 secunde | Exited with error status 4 | 10 | 0 | ||
| 7 | 0 secunde | Exited with error status 10 | 10 | 0 | ||
| 8 | 0 secunde | Exited with error status 9 | 10 | 0 | ||
| 9 | 0 secunde | Exited with error status 5 | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema getbymask 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ă.