|
[求助]关于vc编译LINK2001
果然用这种结构写就成功了!谢谢你的帮助! |
|
[讨论][分享]何时才能练成传说中的大牛
麻烦您介绍一下基础知识有哪些吧。同为新手,也很迷茫…… |
|
[求助]准大二生对未来的困惑,望各位前辈能花几分钟看看。感激不尽!
选职业,自己感兴趣,就这一条满足,就够了。其他的都不重要! 关键是你是否真的感兴趣?是否真的能为了它有所牺牲?是否真的能放弃享受?再苦再累也愿意?再平凡再穷也心甘? 如果是,那就说明你真的对它感兴趣,那就没有什么能阻挠你内心的渴望。 |
|
《疯狂的程序员》作者 绝影 被捕了吗?大家快进来讨论!!)
不知绝影现在怎样,在做啥么? |
|
[原创]一道真正难倒亿人的智力题,这是微软的面试题
谈谈我的想法: 我们把这五个人称为A,B,C,D,E。顺序不言而喻。 20=100/5.所以20应该是个敏感的数字。我们就以20为界。 A可以取20个,20+(比如21个)和20-(比如19个)这三种情况。 接下来我要以类似反证法的方式推导出A取20+是不合理的,不会发生的。 (1)assume A有必然存活的最优解 (2)assume A取21是最优解。(因为A足够聪明,所以他可以确保自己取21不会是最值) 这时,B有三种选择:取21,取20,取19. 注意,B不会取22.因为B后面的人和A一样聪明,既然A确保自己取21不会是最大,那么他们又何必取比21大的数呢? 既然如此,B也不会傻到取22了。 (3)assume B取21是最优解。(理由和A一样) 这时,C有三种选择:取21,取20,取19 (4)assume C取21是最优解。(理由和A一样) 这时,D有三种选择:取21,取20,取19 (5)assume D取21是最优解。(理由和A一样) 这时,E没得选择,只能自认倒霉取最小值了。 因此,出于某种假设出的肯定的理由,A,B,C,D都取了21。 但请注意!A,B,C,D都取了最大值。结果他们都要死! 所以D取21是不合理的,非最优的。该假设assume(5)被推翻! (6)assume D取20是最优解。 E没话语权,就不提他了。可C是很聪明的。他可以料到D不会去21,而取20。 C还取21的话只有死路一条。所以assume(4)被推翻!相应的assume(6)也不存在了。 (7)assume C取20是最优解。 D不能大于等于21,D可以而且最好选择和C一样去20.但B不会答应,他和C一样聪明呢 可惜!B没有充分的理由说服自己取21.assume(3)被推翻,其附属的assume(7)也不存在了。 (8)assume B取20是最优解。 理由同上。A不会想不到这些情况,他只会比我们聪明,所以A也没有充分理由使自己取21. assume(2)被推翻! 好吧,经历了这么一大圈,我们反证了A不会取20+(比如21)。 (9)assume A取19是最优解。(现在要挑战最小值了) 但原理和上面不是一样吗。我们就提前否决了assume(9)吧,省得后面一堆假设。 (10)assume A取20是最优解。 即使不做虚拟假设的理由,我们也能感受到这时一种很保险的取法。 B没办法,只能取20.C,D也一样。E表示你们终于也和我一样没得选了吧! 大家全取20,啊哦,都玩完了! 这时我们要挑战assume(1)了!A不能找到必然存活的最优解! 综上所述,是否能活取决于自己之前的人有没有奉献精神。你不能指望后面的人,因为你的一切选择都没他们聪明的大脑想到了。 而前提中有:他们的原则是先求保命,再去多杀人。所以他们没得选,只有全死一条路。 我的分析最重要的地方在于,后来的人能精确的分析出前面的人取的数量。这是有理由的。因为他们都是聪明的人。 |
|
[原创]一道真正难倒亿人的智力题,这是微软的面试题
有两点不明确的地方: 1.每个人都拿20颗,是全死,还是全活? 2.是否允许前面的人把豆子都拿光,使得后面的人没得拿(也就是取数有0的情况)? 对于第一个问题,我认为应该是全死,不然大家都拿29颗,都活下来就已经是最优解了嘛 |
|
关于加载exe文件的寄存器初始值
哦!我明白一些了。 在定义栈段时,只是给程序分配了那么多空间,隔开psp和代码段,毕竟stack segment写在code之前。而ss:sp并不一定要用那个空间,用不用取决于代码有没有明确赋值sp。 谢谢你一直帮我。 |
|
关于加载exe文件的寄存器初始值
重点是ss:sp和cs:ip之间的距离,一开始的正好10h,不就是程序开头16dup的空间吗? 可push后却没放入这段空间。 如果sp一开始为f,也就是说ss:sp==cs:ip-1 不就正好用到这段栈空间了吗? |
|
关于加载exe文件的寄存器初始值
我知道ss+sp,但sp初始值为什么不是f,而是0? |
|
[重复帖]]网站分类聊天室,分类聊天室,主题汇
安装后不能注册? |
|
[原创]inline hook
虽然暂时看不懂,但简介直白的气质依然能感觉到,收藏先,总有一天会看懂的 |
|
[原创]使 Python 可编译
楼主真乃大神也! |
|
追上我的女神了,求祝福,冒风险开贴散分,求管理不黑
只愿得一人心,白首不分离。求分520 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值