#2560
bits
Se dă un număr natural N
. Determinați valoarea unor anumiți biți din reprezentarea sa în baza 2.
Balcaniada de Informatică 2018, ziua de antrenament
Problema | bits | Operații I/O |
bits.in /bits.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 128 MB
/
Stivă 32 MB
|
Id soluție | #11207419 | Utilizator | |
Fișier | bits.cpp | Dimensiune | 266 B |
Data încărcării | 21 Octombrie 2018, 16:28 | Scor / rezultat | Eroare de compilare |
bits.cpp:8:1: error: stray '\302' in program fin>>n; ^ bits.cpp:8:1: error: stray '\240' in program bits.cpp:8:1: error: stray '\302' in program bits.cpp:8:1: error: stray '\240' in program bits.cpp:8:1: error: stray '\302' in program bits.cpp:8:1: error: stray '\240' in program bits.cpp:9:1: error: stray '\302' in program for (d=1;d<=n/2;d++) ^ bits.cpp:9:1: error: stray '\240' in program bits.cpp:9:1: error: stray '\302' in program bits.cpp:9:1: error: stray '\240' in program bits.cpp:9:1: error: stray '\302' in program bits.cpp:9:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program if (n%d==0) ^ bits.cpp:10:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program bits.cpp:10:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program bits.cpp:10:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program bits.cpp:10:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program bits.cpp:10:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program bits.cpp:10:1: error: stray '\240' in program bits.cpp:10:1: error: stray '\302' in program bits.cpp:10:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program nrd++; ^ bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:11:1: error: stray '\302' in program bits.cpp:11:1: error: stray '\240' in program bits.cpp:12:1: error: stray '\302' in program nrd++; ^ bits.cpp:12:1: error: stray '\240' in program bits.cpp:12:1: error: stray '\302' in program bits.cpp:12:1: error: stray '\240' in program bits.cpp:12:1: error: stray '\302' in program bits.cpp:12:1: error: stray '\240' in program bits.cpp:13:1: error: stray '\302' in program fout<<nrd; ^ bits.cpp:13:1: error: stray '\240' in program bits.cpp:13:1: error: stray '\302' in program bits.cpp:13:1: error: stray '\240' in program bits.cpp:13:1: error: stray '\302' in program bits.cpp:13:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema bits 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ă.