Skip to content

Instantly share code, notes, and snippets.

@7shi
Created July 22, 2014 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7shi/5c683b41c58337b0d552 to your computer and use it in GitHub Desktop.
Save 7shi/5c683b41c58337b0d552 to your computer and use it in GitHub Desktop.
[Brainf*ck]約1億回ループ
++++++[>-[>-[>-[-]<-]<-]<-]
uint8_t mem[] = { 0, 0, 0, 0 };
mem[0] = 6; // ++++++
while (mem[0]) { // [
mem[1] = 255; // >-
while (mem[1]) { // [
mem[2] = 255; // >-
while (mem[2]) { // [
mem[3] = 255; // >-
while (mem[3]) { // [
mem[3]--; // -
} // ]
mem[2]--; // <-
} // ]
mem[1]--; // <-
} // ]
mem[0]--; // <-
} // ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment