摘要: Description读入两个小于10000的正整数A和B,计算A+B。需要注意的是:如果A和B的末尾K(不超过8)位数字相同,请直接输出-1。Input测试输入包含若干测试用例,每个测试用例占一行,格式... 阅读全文
posted @ 2017-07-11 08:34 让你一生残梦 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目如下:The digital root of a positive integer is found bysumming the digits of the integer. If the resul... 阅读全文
posted @ 2017-07-10 13:20 让你一生残梦 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 人生没有标准,人生就像水,你知道源头在那,却不知道到底从哪来,比如黄河来至于青海省青藏高原的巴颜喀拉山脉查哈西拉山的扎曲,准确来说是那个地下面,可是地下水,为什么会来到这里呢?也许,有人说:“地理因素形成... 阅读全文
posted @ 2017-07-10 12:10 让你一生残梦 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 题目如下:Here is a famous story in Chinese history. "That was about 2300 years ago. General Tian Ji was a ... 阅读全文
posted @ 2017-07-10 11:09 让你一生残梦 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目如下: The highest building in our city has only one elevator. Arequest list is made up with N ... 阅读全文
posted @ 2017-07-10 11:03 让你一生残梦 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 描述给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 using namespace std;int chen[100... 阅读全文
posted @ 2017-07-09 21:22 让你一生残梦 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题目如下:An inch worm is at the bottom of a well ninches deep. It has enough energy to climb u inches ever... 阅读全文
posted @ 2017-07-09 20:01 让你一生残梦 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 题目如下:FatMouse prepared M pounds of cat food, ready to trade with thecats guarding the warehouse contai... 阅读全文
posted @ 2017-07-09 19:40 让你一生残梦 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 在现实中我们要对一些数据排序,但是排序也不单单是我们以前所学的按照大小去排序,有可能含有很多的排序方式,比如成绩管理系统的排序,他需要先按照总分去排序,之后就是语文,数学,英语等等要求去排序,再比如说就是... 阅读全文
posted @ 2017-06-19 12:07 让你一生残梦 阅读(2039) 评论(0) 推荐(0) 编辑
摘要: 题目描述大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很 快就明白了,字条上奇怪的乱... 阅读全文
posted @ 2017-06-10 11:58 让你一生残梦 阅读(195) 评论(0) 推荐(0) 编辑