x星球的盛大节日为增加气氛,用30台机光器一字排开,向太空中打出光柱。安装调试的时候才发现,不知什么原因,相邻的两台激光器不能同时打开!国王很想知道,在目前这种bug存在的情况下,一共能打出多少种激光效果? 显然,如果只有3台机器,一共可以成5种样式,即:全都关上(sorry, 此时无声胜有声,这也 ...
分类:
其他好文 时间:
2019-04-22 00:26:53
阅读次数:
154
(注意,增加之后需要对input的另外设置,不然输入框无法输入)场景:H5出现一个按钮需要长按几秒展示动画的,如:skcs.net-tactic.com/wap/peace/index,这时就需要用到禁止苹果的 ios机默认存在长按复制选择,用以下代码取消: *{ -webkit-touch-cal ...
分类:
移动开发 时间:
2019-04-22 00:14:29
阅读次数:
233
知识点: str.isdigit() 可以判断字符串能否被转换为int类型 enumerate() 枚举list里边的内容 格式化高亮显示的方法 测试结果 ...
分类:
其他好文 时间:
2019-04-21 23:01:27
阅读次数:
319
After a terrifying forest fire in Berland a forest rebirth program was carried out. Due to it N rows with M trees each were planted and the rows were ...
分类:
其他好文 时间:
2019-04-21 20:33:40
阅读次数:
156
程序设计中临时变量的使用(课下测试,选做) 要求 定义一个数组:int arr[] = {1,2,3,4,5,6,7,8}; 打印原始数组的值:for(int i:arr){System.out.print(i + " "); } System.out.println();// 添加代码删除上面数组 ...
分类:
其他好文 时间:
2019-04-21 20:33:23
阅读次数:
184
[(x, y) for x in [1,2,3] for y in [3,1,4] if x != y]: [str(round(pi, i)) for i in range(1, 6)] 表达式嵌套[[row[i] for row in matrix] for i in range(2)] 字典生 ...
分类:
其他好文 时间:
2019-04-21 20:33:09
阅读次数:
172
228. Middle of Linked List Find the middle node of a linked list. Find the middle node of a linked list. Find the middle node of a linked list. Exampl ...
分类:
其他好文 时间:
2019-04-21 20:32:20
阅读次数:
154
package com.Summer_0421.cn; import java.util.Arrays; /** * @author Summer * 选择排序 * 通过记录下标值,优化选择排序 */ public class Test06 { public static void main(Str... ...
分类:
编程语言 时间:
2019-04-21 20:21:35
阅读次数:
177
Hive的后端存储是HDFS,它对大文件的处理是非常高效的,如果合理配置文件系统的块大小,NameNode可以支持很大的数据量。但是在数据仓库中,越是上层的表其汇总程度就越高,数据量也就越小。而且这些表通常会按日期进行分区,随着时间的推移,HDFS的文件数目就会逐渐增加。 小文件带来的问题 关于这个 ...
分类:
其他好文 时间:
2019-04-21 20:02:52
阅读次数:
280