摘要: Sum It UpTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2982Accepted Submission(s): 1493Problem DescriptionGiven a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4 阅读全文
posted @ 2013-07-25 11:22 Jack Ge 阅读(623) 评论(0) 推荐(0) 编辑
摘要: [1475] Bachelor http://acm.nbut.cn:8081/Problem/view.xhtml?id=1475时间限制: 1000 ms 内存限制: 65535 K问题描述炎热的暑期集训就要结束了,在这短短的20天,大家都很努力,因为很多都是光棍嘛。balabala所以 Marknoon 先森一直耿耿于怀,毕竟他也是单身嘛。有一天,Marknoon 先森看着一串数字,发现了那个跟他同命相连的数字1,所以他就开始无聊起来,想知道从数字1到数字N,一共出现了几个1。例如N=12,则1的个数为5,出现1的数字分别为1,10,11,12。输入输入一个数N(1... 阅读全文
posted @ 2013-07-25 07:31 Jack Ge 阅读(319) 评论(0) 推荐(0) 编辑