POJ1189总结

钉子和小球 题目来源 Description 有一个三角形木板,竖直立放,上面钉着n(n+1)/2颗钉子,还有(n+1)个格子(当n=5时如图1)。每颗钉子和周围的钉子的距离都等于d,每个格子的宽度也都等于d,且除了最左端和最右端的格子外每个格子都正对着最下面一排钉子的间隙。让一个直径略小于d的小球中心正对着最上面的钉子在板上自由滚落,小球每碰到一个钉子都可能落向左边或右边(概率各1/2),且球的 […]

POJ1179总结

Polygon 题目来源 Description Polygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex is labelled with an integer and each edge is labell […]

POJ1178总结

热烈庆祝CZTCODE累计文章100篇! Camelot 题目来源 Description Centuries ago, King Arthur and the Knights of the Round Table used to meet every year on New Year’s Day to celebrate their fellowship. In remembranc […]

POJ1163总结

The Triangle 题目来源 Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the […]

POJ1157总结

LITTLE SHOP OF FLOWERS 题目来源 Description You want to arrange the window of your flower shop in a most pleasant way. You have F bunches of flowers, each being of a different kind, and at least as many v […]

Java安卓学习总结(三)

今天尝试去添加新的string资源,结果出现了这个问题: 网上查询是由于eclipse读取这个string.xml文件时会自动将其变为带有BOM的UTF-8文件,而eclipse使用的BOM是低版本的dom4j-1.3,需要对BOM进行升级到dom4j-1.6.1版本。意思就是不新建资源就不会有问题,一新建就会报错。 然后也尝试找了很多的解决方法,比如将string.xml另存为不带有BOM的UT […]