摘要: Repeating DecimalsThe decimal expansion of the fraction 1/33 is , where the is used to indicate that the cycle 03 repeats indefinitely with no interve... 阅读全文
posted @ 2015-04-28 13:23 linyuyizhizou 阅读(427) 评论(0) 推荐(0) 编辑
摘要: DescriptionTo enable homebuyers to estimate the cost of flood insurance, a real-estate firm provides clients with the elevation of each 10-meter by 10... 阅读全文
posted @ 2015-04-28 13:04 linyuyizhizou 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: Problem EAll in AllInput:standard inputOutput:standard outputTime Limit:2 secondsMemory Limit:32 MBYou have devised a new encryption technique which e... 阅读全文
posted @ 2015-04-26 22:37 linyuyizhizou 阅读(136) 评论(0) 推荐(0) 编辑
摘要: We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors.... 阅读全文
posted @ 2015-04-26 13:41 linyuyizhizou 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 给定矩形的长和宽,判断它们能否构成长方体的六个面 1 #include 2 #include 3 using namespace std; 4 int t; 5 void change(int a[7][3]) //输入两个数字,按顺序:小,大;排列。 6 { 7... 阅读全文
posted @ 2015-04-22 22:02 linyuyizhizou 阅读(869) 评论(0) 推荐(0) 编辑
摘要: #include #include char code[8][1 >k) &&k== '\n'); // 空行重读 if (k == -1) k = 0; else gets(s + 1); s[0] = k; return strlen(s);}voi... 阅读全文
posted @ 2015-04-16 13:19 linyuyizhizou 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目描述为了缩短领救济品的队伍,NNGLRP决定了以下策略:每天所有来申请救济品的人会被放在一个大圆圈,面朝里面。选定一个人为编号 1 号,其他的就从那个人开始逆时针开始编号直到 N。一个官员一开始逆时针数,数 k 个申请者,然后另一个官员第 N 个始顺时针方向数 m 个申请者,这两个人就被送去再教... 阅读全文
posted @ 2015-04-14 22:30 linyuyizhizou 阅读(170) 评论(0) 推荐(0) 编辑