摘要: Red and BlackTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 17061Accepted: 8996DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can& 阅读全文
posted @ 2012-08-15 23:48 加拿大小哥哥 阅读(731) 评论(0) 推荐(0)
摘要: 1923. Tanning SalonTime Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 924 Accepted Runs: 556Tan Your Hide, Inc., owns several coin-operated tanning salons. Research has shown that if a customer arrives and there are no beds available, the customer will turn around and leave, thus costing the c. 阅读全文
posted @ 2012-08-15 21:25 加拿大小哥哥 阅读(387) 评论(0) 推荐(0)
摘要: 1601. Box of BricksTime Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 5007 Accepted Runs: 1950Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. "Look, I've built a wall!", he tells his older sister Alice. &q 阅读全文
posted @ 2012-08-15 19:20 加拿大小哥哥 阅读(234) 评论(0) 推荐(0)
摘要: 1547. To and FroTime Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 885 Accepted Runs: 692Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to. 阅读全文
posted @ 2012-08-15 18:11 加拿大小哥哥 阅读(213) 评论(0) 推荐(0)