![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
bestace
这个作者很懒,什么都没留下…
展开
-
HDU1032 The 3n + 1 problem
DescriptionBackgroundProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of原创 2016-11-21 00:22:45 · 304 阅读 · 0 评论 -
UVa10189 Minesweeper
题目大意输入行数与列数,紧接着输入一个字符矩阵,矩阵中’.’代表没有雷,‘*‘代表雷,进行的处理是将所有的.替换为周围的雷的数目,模拟了扫雷的过程 英文原文: Have you ever played Minesweeper? It’s a cute little game which comes within a certain Operating System which name we c原创 2016-11-23 01:50:25 · 529 阅读 · 0 评论 -
UVa 11100 The Trip
题目花了比较长的时间,遇到些问题 double转换为int型时,总是会出现减1的情况,比如: t=15.01; a=(int)(t*100); 得到的a=1500 若t=15.11,则a=1510 在网上查阅资料知道: 首先 float double这类的数据是近似值 有精度问题 比如输入8.00时,可能实际值是7.99999··· 所以取整时少了1 此处原理类似,解决方法是采用(int)原创 2017-02-19 00:41:35 · 344 阅读 · 0 评论