This file contains hidden or 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
Traceback (most recent call last): | |
File "/home/suresh/vnc/vnc-plone-buildout/parts/instance/bin/interpreter", line 419, in <module> | |
exec(compile(__file__f.read(), __file__, "exec")) | |
File "/home/suresh/vnc/vnc-plone-buildout/eggs/Zope2-2.13.21-py2.7.egg/Zope2/Startup/run.py", line 76, in <module> | |
run() | |
File "/home/suresh/vnc/vnc-plone-buildout/eggs/Zope2-2.13.21-py2.7.egg/Zope2/Startup/run.py", line 22, in run | |
starter.prepare() | |
File "/home/suresh/vnc/vnc-plone-buildout/eggs/Zope2-2.13.21-py2.7.egg/Zope2/Startup/__init__.py", line 86, in prepare | |
self.startZope() | |
File "/home/suresh/vnc/vnc-plone-buildout/eggs/Zope2-2.13.21-py2.7.egg/Zope2/Startup/__init__.py", line 262, in startZope |
This file contains hidden or 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
def solve(): | |
board = [ [' ' for i in range(8) ] for j in range(8) ] | |
start = [ 0 ] * 8 | |
row = 0 | |
nq = 0 | |
turn_on = False | |
while row < 8: | |
col = start[row] | |
while col < 8: | |
added = add_a_queen(board, row, col) |
This file contains hidden or 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
from random import choice | |
from operator import attrgetter | |
years = range(1992, 1995) | |
months = range(1, 3) | |
day = range(1, 3) | |
idx = range(2) | |
class A(object): | |
def __init__(self): |
NewerOlder