摘要: 今天在刷题过程中发现了一个特别奇怪的现象,printf() 的精度控制不是按照4舍5入,而是按照5舍6入, 例如: printf("%.2f\n",0.145) printf("%.2f\n",0.146) 结果分别为 0.14 0.15 随后的实验中,有一个更加奇怪的现象 printf("%.2f\n",0.155) 的结果为 0.16 这就很是奇怪了,一会四舍五入,一会五舍六入的。。。。。 ... 阅读全文
posted @ 2016-12-30 17:54 Pic 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are many secret openings in the floor which are covered by a big heavy stone. When the stone is lifted up, a special mechanism detects this and activates poisoned arrows tha... 阅读全文
posted @ 2016-12-30 17:03 Pic 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Problem Description In 2100, since the sea level rise, most of the cities disappear. Though some survived cities are still connected with others, but most of them become disconnected. The government w... 阅读全文
posted @ 2016-12-30 00:41 Pic 阅读(170) 评论(0) 推荐(0) 编辑