上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页
摘要: prefix sum 阅读全文
posted @ 2019-03-18 01:49 周洋 阅读(108) 评论(0) 推荐(0) 编辑
摘要: import sys print(sys.version) 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] print(sys.version_info) sys.version_info(major=3, minor=6, micro=7, releaselevel='final', serial=0) 阅读全文
posted @ 2019-03-17 23:37 周洋 阅读(17994) 评论(0) 推荐(0) 编辑
摘要: pyhton的any() 函数: 判断给定的可迭代参数 iterable : 全部为 False,返回 False; 至少有一个为 True,则返回 True. 元素除了是 0、空、FALSE 外都算 TRUE。 any() 方法的语法: 示例:(参考:http://www.runoob.com/p 阅读全文
posted @ 2019-03-17 05:07 周洋 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 因为python3取消了xrange这个函数,range就是xrange. 阅读全文
posted @ 2019-03-17 04:58 周洋 阅读(4355) 评论(0) 推荐(1) 编辑
摘要: 简单操作: 排序: 阅读全文
posted @ 2019-03-17 04:23 周洋 阅读(13716) 评论(0) 推荐(1) 编辑
摘要: prefix sum 阅读全文
posted @ 2019-03-17 00:43 周洋 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 前缀和(prefix sum/cumulative sum) 阅读全文
posted @ 2019-03-17 00:29 周洋 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 前缀和(prefix sum/cumulative sum)的应用. 还用了一个知识点: a≡b(mod d) 则 a-b被d整除. 即:a与b对d同余,则a-b被d整除. 阅读全文
posted @ 2019-03-16 20:16 周洋 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 送分题 阅读全文
posted @ 2019-03-16 19:44 周洋 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 送分题 阅读全文
posted @ 2019-03-16 19:35 周洋 阅读(199) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页