- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
main() {
char * what = "\
........................................ ....________\
....................................,.-'\"...................``~.,\
.............................,.-\"................................... \"-.,\
.........................,/........................................ .......\":,\
.....................,?................. .....................................,\
.................../........................................ ...................,}\
................./........................................ ..............,:`^`..}\
.............../........................................ ...........,:\"........./\
..............?.....__.................. .......................:.........../\
............./__.(.....\"~-,_..............................,:..... ...../\
.........../(_....\"~,_........\"~,_.................. ..,:........_/\
..........{.._$;_......\"=,_.......\"-,_.......,.-~-,},.~\";/....}\
...........((.....*~_.......\"=-._......\";,,./`..../\"............../\
...,,,___.`~,......\"~.,................. ...`.....}............../\
............(....`=-,,.......`........................(..... .;_,,-\"\
............/.`~,......`-...................................../\
.............`~.*-,.....................................|, ./.....,__\
,,_..........}.>-._...................................|.. ............`=~-,\
.....`=~-,__......`,............................. ....\
...................`=~-,,.,...............................\
................................`:,,.... .......................`..............__\
.....................................`=-,...................,%`>--==``\
........................................ _..........._,-%.......`\
...................................,";
int c = 0; int i = 0;
for(; i < strlen(what); i++) {
switch(what[i]) {
case '.': c++;break;
case '_': c--;break;
case '/': c *= 2; break;
case ',': c /= 2; break;
case '?': c <<= 1; break;
case '"': c >>= 1; break;
case ':': c = ~c; break;
case '*': c = -c; break;
case '`': c += 100500; break;
case '{': c -= '{'; break;
case '}': c += '}'; break;
case '-': c /= 4; break;
case '~': c <<= 4; break;
case ';': c = c & -c; break;
case '%': c = c & 0xFF; break;
case '=': c = c; /* еба! */ break;
case '^': c = c ^ -c; break;
case '$': printf("BINGOOO!!!\n"); break;
}
}
printf("FACEPALM RESULT: %i\n", c);