摘要: A. Theatre Squaretime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputTheatre Square in the capital city of Berland has a rectangular shape with the sizen × mmeters. On the occasion of the city's anniversary, a decision was taken to pave the S 阅读全文
posted @ 2013-08-18 18:57 ChrisZZ 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 网上搜到一个Pygame写的俄罗斯方块(tetris),大部分看懂的前提下增加了注释,Fedora19下运行OK的主程序:#coding:utf8#! /usr/bin/env python# 注释说明:shape表示一个俄罗斯方块形状 cell表示一个小方块import sysfrom random import choiceimport pygamefrom pygame.locals import *from block import O, I, S, Z, L, J, TCOLS = 16ROWS = 20CELLS = COLS * ROWSCELLPX = 32 # 每个cell. 阅读全文
posted @ 2013-08-18 16:45 ChrisZZ 阅读(575) 评论(0) 推荐(0) 编辑