HWTest12
代码说明:
给出一个整数(负数使用其绝对值),输出这个整数中的两种递减数之和(1.最大递减数;2.递减数中各位数之和最大的数)。递减数:一个数字的递减数是指相邻的数位从大到小排列的数字,不包含相邻的数位大小相同的情况。最大递减数:所输入整数的所有递减数中值最大的一个。如:75345323,递减数有:75,753,53,53,532,32.最大递减数是753.各位数字之和最大的递减数:75个位数字之和=12(7+5),753各位数之和15,由此可知最大递减数为753。此程序输出结果=最大递减数+各位数之和最大的递减数。输入:75345323,输出:1506(Given an integer (negative using its absolute value), output the sum of two descending in the integer number (1. Maximum decreasing number 2. The decline in the number of each number the sum is the biggest number).Decreasing number: a number of decreasing number refers to the digital adjacent order number, do not contain adjacent digital size are the same.Maximum number of decreasing: all the input integer one of the biggest decline in the number of values.Such as: 75345323, decreasing number: 75753,53,53,532,32. Maximum decreasing number is 753. The sum of digits of the largest decline number: 75 bits digital = 12 (7+ 5), the sum of the sum of 753 digits 15, thus the maximum decreasing number is 753.The program output = maximum decreasing number+ you number the sum is one of the largest decline.Input: 75345323, output: 1506)
文件列表:
HWTest12
........\Debug
........\.....\HWTest12.exe,39424,2015-04-01
........\.....\HWTest12.ilk,553488,2015-04-01
........\.....\HWTest12.pdb,707584,2015-04-01
........\HWTest12
........\........\Debug
........\........\.....\CL.read.1.tlog,10220,2015-04-01
........\........\.....\CL.write.1.tlog,760,2015-04-01
........\........\.....\HWTest12.exe.embed.manifest,406,2015-04-01
........\........\.....\HWTest12.exe.embed.manifest.res,472,2015-04-01
........\........\.....\HWTest12.exe.intermediate.manifest,381,2015-04-01
........\........\.....\HWTest12.lastbuildstate,61,2015-04-01
........\........\.....\HWTest12.log,3056,2015-04-01
........\........\.....\HWTest12.obj,33996,2015-04-01
........\........\.....\HWTest12.pch,1179648,2015-04-01
........\........\.....\HWTest12_manifest.rc,206,2015-04-01
........\........\.....\link-cvtres.read.1.tlog,2,2015-04-01
........\........\.....\link-cvtres.write.1.tlog,2,2015-04-01
........\........\.....\link.1808-cvtres.read.1.tlog,2,2015-04-01
........\........\.....\link.1808-cvtres.write.1.tlog,2,2015-04-01
........\........\.....\link.1808.read.1.tlog,2,2015-04-01
........\........\.....\link.1808.write.1.tlog,2,2015-04-01
........\........\.....\link.4608-cvtres.read.1.tlog,2,2015-04-01
........\........\.....\link.4608-cvtres.write.1.tlog,2,2015-04-01
........\........\.....\link.4608.read.1.tlog,2,2015-04-01
........\........\.....\link.4608.write.1.tlog,2,2015-04-01
........\........\.....\link.8036-cvtres.read.1.tlog,2,2015-04-01
........\........\.....\link.8036-cvtres.write.1.tlog,2,2015-04-01
........\........\.....\link.8036.read.1.tlog,2,2015-04-01
........\........\.....\link.8036.write.1.tlog,2,2015-04-01
........\........\.....\link.read.1.tlog,3012,2015-04-01
........\........\.....\link.write.1.tlog,822,2015-04-01
........\........\.....\mt.read.1.tlog,306,2015-04-01
........\........\.....\mt.write.1.tlog,306,2015-04-01
........\........\.....\rc.read.1.tlog,278,2015-04-01
........\........\.....\rc.write.1.tlog,286,2015-04-01
........\........\.....\stdafx.obj,11835,2015-04-01
........\........\.....\vc100.idb,232448,2015-04-01
........\........\.....\vc100.pdb,299008,2015-04-01
........\........\HWTest12.cpp,1430,2015-04-01
........\........\HWTest12.vcxproj,4368,2015-04-01
........\........\HWTest12.vcxproj.filters,1312,2015-04-01
........\........\HWTest12.vcxproj.user,143,2015-04-01
........\........\ReadMe.txt,1560,2015-04-01
........\........\stdafx.cpp,213,2015-04-01
........\........\stdafx.h,233,2015-04-01
........\........\targetver.h,236,2015-04-01
........\HWTest12.sdf,6639616,2015-04-03
........\HWTest12.sln,891,2015-04-01
........\ipch
........\....\hwtest12-4eae7a8a
........\....\.................\hwtest12-bd57274e.ipch,2359296,2015-04-03
下载说明:请别用迅雷下载,失败请重下,重下不扣分!