摘要: 题目跟2996一样的,就是把2996的结果和问题换了一下而已,做法思想不变。模拟题。。View Code 1 #include <stdio.h> 2 #include <string.h> 3 char ss[]= {"+---+---+---+---+---+---+---+---+"}; 4 char map[10][100]; 5 void init() 6 { 7 int i; 8 for(i=0; i<8; i++) 9 { 10 if(i&1) 11 strcpy(map[i],"|:::|...... 阅读全文
posted @ 2013-03-11 12:04 Tamara.c 阅读(135) 评论(0) 推荐(0) 编辑
摘要: DescriptionYour task is to read a picture of a chessboard position and print it in the chess notation.InputThe input consists of an ASCII-art picture of a chessboard with chess pieces on positions described by the input. The pieces of the white player are shown in upper-case letters, while the black 阅读全文
posted @ 2013-03-11 12:02 Tamara.c 阅读(134) 评论(0) 推荐(0) 编辑
摘要: DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are N north (up the page)S south (down the page)E east (to the right on the page)W west (to the left on the page) 阅读全文
posted @ 2013-03-11 11:58 Tamara.c 阅读(142) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach their destinations without crashing into each other. Of course, all warehouses are rectangular, and all robots occupy a circular floor space with a diameter of 1 meter 阅读全文
posted @ 2013-03-11 11:55 Tamara.c 阅读(153) 评论(0) 推荐(0) 编辑
摘要: DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses before the ith right parenthesis in S (P-sequence).q By an integer sequence W = w1 w2...wn where for each 阅读全文
posted @ 2013-03-11 11:51 Tamara.c 阅读(142) 评论(0) 推荐(0) 编辑
摘要: DescriptionAccounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc.All what they remember is that MS Inc. posted a surplus or a deficit each month of 1999 and each month when MS Inc. posted surplus, the amount of surplus 阅读全文
posted @ 2013-03-11 11:44 Tamara.c 阅读(135) 评论(0) 推荐(0) 编辑
摘要: DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of results from number theory and other branches of mathematics once considered to be only of theoretical 阅读全文
posted @ 2013-03-11 11:42 Tamara.c 阅读(140) 评论(0) 推荐(0) 编辑
摘要: DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the coasting, can only cover d distance, so an island in the sea can be covered by a radius i 阅读全文
posted @ 2013-03-11 11:38 Tamara.c 阅读(208) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles on the refrigerator door. Every handle can be in one of two states: open or closed. The refrigerator is open only when all handles are open. The handl 阅读全文
posted @ 2013-03-11 11:33 Tamara.c 阅读(131) 评论(0) 推荐(0) 编辑
摘要: DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it's black or white side up. Each round you flip 3 to 5 pieces, thus changing the color of t 阅读全文
posted @ 2013-03-11 11:25 Tamara.c 阅读(202) 评论(0) 推荐(0) 编辑