Your code is not that ugly. t is some kind of amazing
Here is my code that was disqualified because I didn't #include <string>
[syntax="cpp"]#include "fstream"
using namespace std;
main()
{ char *table = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMxxO\0EfG*IjKxxxxxxn&xx.xxx";
ifstream infile("input.txt");
int pos = 0, direction = 71, tmp = 0, result = 0;
string the_field[25];
while(getline(infile, the_field[tmp++], '\n'));
while(direction)
{
tmp = the_field[pos/32][pos%32]-48;
result = direction & 4 ? direction & 8 ? result * tmp : result + tmp : result - tmp;
pos += (direction & 99) - 66;
direction = table[the_field[pos/32][pos%32]];
pos += (direction & 99) - 66;
}
printf("%i\n", result);
}[/syntax]
Who needs a signature anyway.