Because I don't know your preferred programming language, I am posting in pseudocode.
(Here, hexadecimal constants end with an h, so Fh is fifteen and 10h is sixteen.)
Code: Select all
function trippy (int32 ball) {
int32 bat = ball * 5
bat = BitwiseOr(bat, CCCCCCCFh)
bat = bat - ball
bat = BitwiseAnd(bat, 33333330h)
bat = IntegerDivide(bat, 8)
bat = ball + bat
bat = 3 * bat
output bat
}
In case you're wondering, no, this is not homework.
I have a solution. The MD5 hash of my solution is 6dc3f8339e9f9b60b5f925968bc63ef4.