6.666 — Arcane Programs

Prof. Jean-Joseph Coté (See solution)

Sometimes deciphering a program can be quite a puzzle. Try the one at

web.mit.edu/puzzle/mystery.com

Archivist's note: The original mystery.com file was a com executable. It is still in the 1998 folder in the archive. It probably isn't usable to solve the puzzle. Errata replaced mystery.com with mystery.txt from the same folder. This file became available with the new archive packet, and is as follows:

"%c%c%c\n", __o_o, o__o_,
#define _o_o_ if
#define o_o_o else
#define oo___ printf
#include <stdio.h>
*2<(o__o_-__o_o))
+ __o_o; o__o_ = o_o__ +
1; o___o = o__o_ + _o__o - 11;
_o__o * 3; o_o__ = _o__o
_o__o = 24; __o_o =
_o_o_ (((o___o-o__o_))
int _o__o, __o_o;
int main (void)
int o_o__, o__o_, o___o;
o___o); return 0;
o___o, __o_o); o_o_o oo___(
oo___("%c%c%c\n", _o__o,
(
)