#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 | #46604747 | Utilizator | |
| Fișier | setbit0.c | Dimensiune | 271 B |
| Data încărcării | 18 Noiembrie 2023, 13:46 | Scor/rezultat | 80 puncte |
setbit0.c: In function 'main': setbit0.c:7:2: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=] if(scanf("%d %d", &n, &b) != 2) ^ setbit0.c:7:2: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] setbit0.c:14:2: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d", n); ^
| 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 secunde | OK. | 10 | 10 | ||
| 6 | 0 secunde | OK. | 10 | 10 | ||
| 7 | 0 secunde | OK. | 10 | 10 | ||
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 80 | |||||
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ă.