12 for an unsigned 32 bit integer.
- Must work for all
nbetween 0 and 23. Other numbers optional.
- Must only use any of the operators
>>as commonly defined on 32 bit uints.
- May use arbitrary number of constant uints.
- May not use any form of pointers, including arrays, or any
ifstatements, including things that compile to if statements such as ternary operators or "greater than" operators.
+ -and the bitwise operators
~ & ^ | << >>(NOT, AND, XOR, OR, bit shifts) give a score of
*gives a score of
- Lowest total score wins.