摘要: Problem DescriptionNow you are given one non-negative integer n in 10-base notation, it will only contain digits ('0'-'9'). You are allowed to choose 2 integers i and j, such that: i!=j, 1≤i#include#includeusing namespace std;int p[1010];void swap(int &a,int &b){int temp=a;a= 阅读全文
posted @ 2013-09-26 17:34 forevermemory 阅读(215) 评论(0) 推荐(0) 编辑
摘要: DescriptionA single-player game is played on a rectangular board divided in R rows and C columns. There is a single uppercase letter (A-Z) written in every position in the board. Before the begging of the game there is a figure in the upper-left corner of the board (first row, first column). In ever 阅读全文
posted @ 2013-09-26 11:19 forevermemory 阅读(286) 评论(0) 推荐(0) 编辑