摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2011 题意:求1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + ...前n项的和。 思路:开始看到这个题目,马上就能想到单数为正,双数为负。用if来判断就能解决。其实有更简洁的代码。 计算 阅读全文
posted @ 2018-09-23 21:16 CheeseIce 阅读(261) 评论(0) 推荐(0) 编辑
摘要: fr: 弹性尺寸使用fr尺寸单位,其来自 "fraction" 或 "fractional unit" 单词的前两个字母,表示整体空间的一部分。 布局文件里面设置布局的一些单位和方法;如下: 1px 一个像素点1dpi 一英寸有多少个像素点1dp 在dpi为160的屏幕上: 1dp = 1px px 阅读全文
posted @ 2018-09-23 14:09 CheeseIce 阅读(252) 评论(0) 推荐(0) 编辑
摘要: HTML CSS CSS代码,当改变position的值时: 0 没position时: 1 This is the default value. 2 The element is positioned according to the normal flow of the document, an 阅读全文
posted @ 2018-09-23 12:46 CheeseIce 阅读(262) 评论(0) 推荐(0) 编辑