Divide Us
CodeChefOpen on judge ↗
You are given a bitstring $S$ . A bitstring is a string consisting only of the characters 0 and 1. Score for a bitstring $Score$ = $V$ * $X$ ,where $V$ is the decimal value of the bitstring when treated as binary and $X$ is xor of each element of the bitstring. For example ,for bitstring $00111$ , $V$ = $2^0$ + $2^1$ + $2^2$ =$7$ and $X$=$0$^$0$^$1$^$1$^$1$=$1$ ,so $Score$ =$V$*$X$= $7$ *$1$=$7
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start