2013-12-28から1日間の記事一覧

Rings in the Squareの問題をPythonで解いてみた。

Rings in the Squareの問題をPythonで解いてみました。(^_^; 点は、p=0〜8の整数値で与えて、p%3でx座標、p//3でy座標を得ています。 6---7---8 (0,2)---(1,2)---(2,2) | | | | | | 3---4---5 → (0,1)---(1,1)---(2,1) | | | | | | 0---1---2 (0,0)---(1,0…