I hereby claim:
- I am bigblind on github.
- I am bigblind (https://keybase.io/bigblind) on keybase.
- I have a public key whose fingerprint is AF67 D326 2E34 9F1F B650 EC37 6CC3 761E 6838 1A47
To claim this, I am signing this object:
import datetime | |
print "Hello my closest, most dear and most revered friend" | |
print "Please, if you would be so kind, enter your birthday" | |
valid = False #We start with no value for 'day' at all, so that's certainly not valid | |
while not valid: #while we don't have a valid day: | |
day = int(raw_input("enter the day: )) | |
if day < 1 or day > 31: | |
print "You have entered an invalid answer, please try again" | |
else: |
""" | |
This code is meant to solve the Google Code Jam Mine Sweeper Master, but doesn't, and I have no idea why. | |
I'll describe what it does. In all these examples, r and c will be 5, unless otherwise noted | |
if m is exactly (r*c)-1, you can just click anywhere, | |
and put mines everywhere else. The cell you clicked will show an 8, and you win. | |
if r or c is equal to 1, check if there are at least 2 open spaces. | |
Now, just construct a line, with the given number of mines at the top, or the left, for a column or row respectively, | |
and the click at the bottom or right. |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../paper-ripple/paper-ripple.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
import sys, math | |
inp = open("in.txt") | |
out = open("out.txt","w+") | |
sys.stdout = out | |
t = int(inp.readline()) | |
def print_case(case, result): | |
print "Case #%d: %s" % (case, str(result)) |
I hereby claim:
To claim this, I am signing this object:
https://github.com/blog/all.atom | |
http://feeds.feedburner.com/ClPlBl |