#2580
Se dau: n un număr întreg și b un număr natural. Setați la 0 bitul b al lui n.
| Problema | setbit0 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #32150503 | Utilizator | |
| Fișier | setbit0.cpp | Dimensiune | 278 B |
| Data încărcării | 07 Noiembrie 2021, 19:28 | Scor/rezultat | 0 puncte |
setbit0.cpp: In function 'int main()': setbit0.cpp:14:31: warning: conversion lacks type at end of format [-Wformat=] printf("%ll", setbit(n, b)); ^ setbit0.cpp:14:31: warning: too many arguments for format [-Wformat-extra-args]
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 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 | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema setbit0 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ă.