Skip to content

Instantly share code, notes, and snippets.

@t1anchen
Created August 30, 2012 05:23
Show Gist options
  • Save t1anchen/3522733 to your computer and use it in GitHub Desktop.
Save t1anchen/3522733 to your computer and use it in GitHub Desktop.
Polyglot
#define v putchar
# define print(x) main(){v(4+v(v(52)-4));return 0;}/*
#>+++++++4+[>++++++<-]>++++.----.++++.*/
print(202*2);exit();
#define/*>.@*/exit()
@t1anchen
Copy link
Author

This polyglot program can be compiled via C/C++, Python, Perl, Ruby and Brianf*ck. Visit http://en.wikipedia.org/wiki/Polyglot_(computing) for Polyglot details. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment