|
[活动结束]庆新书发行,特别举办《加密与解密(第三版)》看雪论坛读书月有奖活动[7.5~8.5]
试 试 运 气 咋 样 |
|
|
|
[求助]求一个数值分解的算法
理解了,谢谢版主 |
|
|
|
|
|
[求助]求一个数值分解的算法
我数学不好,对于版主您的算法理解起来实在困难。如果可以的话,可否略做一些注释帮助我理解一下 主要是下面这句,实在不知道啥思路 if ( i + array[j] < MAX_VALUE && value[i+array[j]] == 0 ) value[i+array[j]] = array[j] ; |
|
[求助]求一个数值分解的算法
版主的代码我还是很难理解,而且迭代的次数非常之多,感觉比较影响效率 我终于想到了比较简单而且思路清晰的函数实现,只需在原来的基础上加上一条判断即可,真是恍然大悟啊 class Count { public int[] BaseNumbers = new int[] {858,300,240,120,90,85,60, 30,25,21,17,12,8,7,6,5,4}; public string[] NumberStrings = new string[] { "858","300","240","120","90","85","60","30","25","21","17","12","8","7","6","5","4"}; public StringBuilder strb = new StringBuilder("目标数分解为:\r\n\r\n", 64); public void Scan(int target) { for (int i = 0; i < BaseNumbers.Length; i++) { if (target >= BaseNumbers && (target%BaseNumbers[i]>4 || target%BaseNumbers[i]==0)) { int level = (int)(target/BaseNumbers); target = target % BaseNumbers; strb.AppendFormat("{0}次{1}\r\n", level.ToString(), NumberStrings); } } } } 非常感谢北极星版主的答复,我在琢磨琢磨,希望可以理解版主代码的思路 |
|
[求助]求一个数值分解的算法
大牛们救救小弟啊,真的都不屑解答么 |
|
[求助]求一个数值分解的算法
等了这么久,咋就没人帮帮我呢 |
|
|
|
[原创]易语言通用脱壳机
不得以任何原因去掉作者“表示”——“标识” |
|
[讨论]Code Virtualizer [1.3.4.0] (01-Oct-2007)
目前来讲 TMD的作者还是最勤快的 |
|
[求助]请问用EncryptPE2007.4.11加的壳,反
这样就算出来了 还了得 |
|
[分享]RAR压缩源代码
不知道是真的假的 |
|
[转帖]花生脱壳机的正确使用
笑 死 我 了 |
|
[原创]Armadillo 5.02 public version 内存破解补丁!
大侠2002的loader做的好多啊 |
|
[讨论]关于cv的sdk 加密
很明显不会的 |
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值