Skip to content

Instantly share code, notes, and snippets.

@nuboat
Last active August 19, 2016 10:30
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 nuboat/12355bf796dfe919d40167200b218aa8 to your computer and use it in GitHub Desktop.
Save nuboat/12355bf796dfe919d40167200b218aa8 to your computer and use it in GitHub Desktop.
Print A n^n
n = 3
2,2,2
2,2,1
2,2,0
2,1,2
2,1,1
2,1,0
2,0,2
2,0,1
2,0,0
=====
1,2,2
1,2,1
1,2,0
1,1,2
1,1,1
1,1,0
1,0,2
1,0,1
1,0,0
=====
0,2,2
0,2,1
0,2,0
0,1,2
0,1,1
0,1,0
0,0,2
0,0,1
0,0,0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment