- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 溢出避免:求平均数
好久不见…… 这次来说说求平均数的问题。问题很简单,就是求 (a+b)/2。 当然,我不是让你直接printf(“%d”,(a+b)/2); 这样随便一个人学一小时C语言就可以做到。 问题是 a+b 如果溢出了怎么办?溢出的话就得不到正确结果了,这样该怎么解决? 如果简单的避免溢出,将程序改成 a/2+b/2,这样也是不对的,这样会在a,b都为奇数时导致缺失。 还有人会给出 a+
2017-04-10 16:07:55 4748 6
博弈论课件
About the Course
This course is an introduction to game theory and strategic thinking. Ideas such as dominance, backward induction, Nash equilibrium, evolutionary stability, commitment, credibility, asymmetric information, adverse selection, and signaling are discussed and applied to games played in class and to examples drawn from economics, politics, the movies, and elsewhere. view class sessions >>
2019-02-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人