Created
February 10, 2012 15:59
-
-
Save dokipen/1790465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sys | |
for i in range(1,10000): | |
response = requests.post('http://apply.embed.ly/1', data={'answer': str(i)}) | |
if response.status_code == 302: | |
print i | |
sys.exit(0) |
I'm allowed some lenience since I wrote the problem :P I was mainly trying to give my coworkers a good laugh.
Ha ha ha... nice one :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not uphold the spirit of the test! Trial and error is good for dating, not for coding.