Skip to content

Instantly share code, notes, and snippets.

@suminb
Created February 5, 2013 09:30
Show Gist options
  • Select an option

  • Save suminb/4713319 to your computer and use it in GitHub Desktop.

Select an option

Save suminb/4713319 to your computer and use it in GitHub Desktop.
근모의 수학 퀴즈 컴퓨터 시뮬레이션
if __name__ == '__main__':
i, s = 1, 0
while True:
s += i if i & 1 != 0 else -i
i += 1
r = i % 1000000
if r == 0 or r == 1:
print s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment