Popular recipes by Nycholas Oliveira e Oliveira http://code.activestate.com/recipes/users/2761295/2008-05-16T14:07:41-07:00ActiveState Code RecipesA simple calculator that works with whole numbers written in C/Python. (Python) 2008-05-16T14:07:41-07:00Nycholas Oliveira e Oliveirahttp://code.activestate.com/recipes/users/2761295/http://code.activestate.com/recipes/572205-a-simple-calculator-that-works-with-whole-numbers-/ <p style="color: grey"> Python recipe 572205 by <a href="/recipes/users/2761295/">Nycholas Oliveira e Oliveira</a> (<a href="/recipes/tags/extending/">extending</a>). </p> <p>A simple calculator that works with whole numbers written in C/Python.</p> <p>The purpose of this implementation is only to show how a simple extension C/Python that can help people who are starting with C/Python.</p> <p>In this cookbook show the two codes in C, the first is the pure C and the second is the implementation for Python.</p> <p>I hope this cookbook possar help.</p> <p>-- Until more and good luck, Nycholas de Oliveira and Oliveira.</p> Eight Queens <Oito Rainhas> (Python) 2006-02-06T09:54:22-08:00Nycholas Oliveira e Oliveirahttp://code.activestate.com/recipes/users/2761295/http://code.activestate.com/recipes/473821-eight-queens-oito-rainhas/ <p style="color: grey"> Python recipe 473821 by <a href="/recipes/users/2761295/">Nycholas Oliveira e Oliveira</a> (<a href="/recipes/tags/algorithms/">algorithms</a>). Revision 2. </p> <p>An enigma for the chess fans is the problem of the Eight Queens, that demands the following one: it is possible to place eight queens in an empty chessboard in way that none is ' attacking ' some another one (that is, without that two queens are in the same line, the same column or the same diagonal line)?</p> <p>Um enigma para os fãs de xadrez é o problema das Oito Rainhas, que exige o seguinte: é possível colocar oito rainhas em um tabuleiro de xadrez vazio de modo que nenhuma esteja 'atacando' alguma outra (isto é, sem que duas rainhas estejam na mesma linha, na mesma coluna ou na mesma diagonal)?</p> <p>PS.: Texto retirado do livro: Java Como Programar, Sexta Edição, Capítulo: 15, Pagina: 580, Exercicio: 15.15, H. M. Deitel(Ditel &amp; Associates, Inc.), P. J. Deitel(Deitel &amp; Associates, Inc.).</p>