Skip to content

Instantly share code, notes, and snippets.

@xdoju

xdoju/11579.py Secret

Created January 4, 2019 05:26
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 xdoju/f3631fb1f8301087d447c136249f7c35 to your computer and use it in GitHub Desktop.
Save xdoju/f3631fb1f8301087d447c136249f7c35 to your computer and use it in GitHub Desktop.
print(2)
print(500)
for i in range(500):
print('0 ' * i + '1' + ' -1000' * (500 - i - 1))
print('500000000 ' * 499 + '500000000')
print(500)
for i in range(499):
print('0 ' * i + '1' + ' -1000' * (499 - i - 1) + ' 1000')
print('0 ' * 499 + '1')
print('500000000 ' * 499 + '-500000000')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment