|
[注意]启用“课题+成果”的模式+成立“编程技术小组”(最近更新2008.6.27)
技术小组成员的一个重要职责是需要负责技术专题,对专题所涉及领域的内容进行分解。小组成员不会很多,一般是4~6个。之所以出专题,就是为了引导大家一起学习。技术小组成员的角色就是起引导作用。要求一篇精华主要是要观察下各方面的能力,这是个基本的要求。如果你真的有实力的话,那些条款都是虚的,有没有都无所谓。如果你确实非常想加入的话,我可以提供你一次机会,我们找个时间聊聊。 BTW:可能会聊一些“课题+成果”模式的话题。如果让你来做专题,你会做什么?怎么做?是否有详细的计划?这些问题你可以提前考虑下。 |
|
[求助]这个hook有问题吗?怎么hook不上
自己埋雷自己挖! |
|
[求助]求一个数值分解的算法
思路是当value[i]的值不为0时,表示i可以被拆分 如果i可以被拆分,那么i+4,i+5……i+858这些数也都是可以被拆分的。 此时就设置value[i+4]=4,value[i+5]=5……value[i+858]=858, value[i]的值表示拆分中的最大数据 如果现在到了i+854,它也可以通过加4到达i+858, 然而此时的i+858已经有效,因而不更新array[i+858]的数据 |
|
|
|
|
|
[求助]求一个数值分解的算法
针对这个数组858,300,240,120,90,85,60,30,25,21,17,12,8,7,6,5,4 默认情况已经保证了每个值都可以被拆分,因而你的方法也只有在这种情况下有效 而我当前考虑的时候就认为不一顶每个值都能被拆分,因而我写的算法具有通用性 把题目稍微修改下:858, 329, 120, 32, 10, 6 |
|
[求助]求一个数值分解的算法
动态规划,时间复杂度O(n),不需要用递归。 下面是具体实现,具体思路懒的写了,要睡觉了。 自己先研究下,如果看不懂再说。 #include <iostream.h> #define MAX_VALUE 1000000 // value[i]的值表示到达i值的最大步长 unsigned short value[MAX_VALUE+5] = {0} ; // array[i]的值表示表示步长 unsigned short array[17] = { 858,300,240,120,90,85,60,30,25,21,17,12,8,7,6,5,4 } ; int main() { int i, j ; for ( i = 0; i < 17; i++ ) value[array[i]] = array[i] ; for ( i = 0; i < MAX_VALUE; i++ ) { if ( value[i] == 0 ) continue ; for ( j = 0; j < 17; j++ ) { if ( i + array[j] < MAX_VALUE && value[i+array[j]] == 0 ) value[i+array[j]] = array[j] ; } } // 下面是输出部分 int target = 0; while ( cin >> target ) { if ( target <= 4 || target >= MAX_VALUE ) cout << "input error!" << endl ; else if ( value[target] == 0 ) cout << "no slove!" << endl ; else { cout << "[ " ; while ( target ) { cout << value[target] << ' ' ; target -= value[target] ; } cout << "]" << endl ; } } return 0; } /* //测试示例 3000 [ 858 858 858 300 120 6 ] 432 [ 300 120 12 ] 654 [ 300 300 30 17 7 ] 54335 [ 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 85 8 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 85 8 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 858 85 8 858 858 858 240 30 7 4 ] */ |
|
[原创]一道字符串转换面试题的汇编实现及简要注释
没仔细看你的代码,总之算法复杂度是O(n)就对了 |
|
[求助][讨论]新版的microsft visual studio开发环境下做不出来不依赖.net的程序了吗?
这样我最开心了,只知道把控件往对话框上一拖就完事了。 |
|
[原创]分析一个好玩的c语言程序
恐怖的说,看不懂,先标记,回头慢慢看。 |
|
|
|
|
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值