Advent of code 2015 solutions https://adventofcode.com/2015/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

1234567891011121314
  1. #!/usr/bin/python
  2. import hashlib
  3. input = 'ckczppom'
  4. count = -1
  5. hash = '111111'
  6. while hash[0:6] != '000000':
  7. count += 1
  8. hash = hashlib.md5("%s%s" % (input, count)).hexdigest()
  9. print(count)
  10. print(hash)