In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach o ...
分类:
编程语言 时间:
2020-01-29 10:50:52
阅读次数:
93
(一)LinearLayout界面编排模式 他的格式是按照线性顺序,由上往下或右左往右,逐一排列界面组件。 layout_width:中的“match_parent”表示要填满他所在的外框,而“wrap_content”表示它的大小只要满足内部所包含的界面组件即可。 android:orientat ...
分类:
移动开发 时间:
2020-01-28 22:56:17
阅读次数:
102
第一个 MyBatis 程序 我们来实际开发一个 MyBatis 程序,感受一下。 第一步:准备数据库 首先我们创建一个数据库【mybatis】,编码方式设置为 UTF-8,然后再创建一个名为【student】的表,插入几行数据: DROP DATABASE IF EXISTS mybatis; C ...
分类:
其他好文 时间:
2020-01-28 15:26:20
阅读次数:
76
-- 如下两种写法等效,一般,通过 exists 的写法更高效mysql> explain select * from sakila.film where film_id in (select film_id from sakila.film_actor where actor_id = 1); + ...
分类:
数据库 时间:
2020-01-28 13:49:41
阅读次数:
99
一. DDL数据定义 创建数据库 1)create database db_hive; 2)避免要创建的数据库已经存在错误,增加 if not exists 判断。 create database if not exists db_hive; 3)创建一个数据库,指定数据库在 HDFS 上存放的位置 ...
分类:
其他好文 时间:
2020-01-26 11:43:56
阅读次数:
67
一. 系统内置函数 1)查看系统自带的函数 hive> show functions; 2)显示自带的函数的用法 hive> desc function upper; 3)详细显示自带的函数的用法 hive> desc function extended upper; 二. 自定义函数 1.分类 1 ...
分类:
其他好文 时间:
2020-01-26 11:39:32
阅读次数:
67
题目链接 https://atcoder.jp/contests/agc032/tasks/agc032_f 题解 神仙题。。 第一步转化利用了$\frac{1}{3}$这个数特有的性质。假设我们用红线标出每一次切割的位置,再在每一次切割的位置顺时针$120$度处用蓝线标出,那么答案就等于红线与蓝线 ...
分类:
其他好文 时间:
2020-01-25 23:36:44
阅读次数:
128
参考地址 https://github.com/swagger-api/swagger-core/wiki/Annotations-1.5.X#quick-annotation-overview 说明 以下配置是基于spring-boot项目。 注解 - @Api()用于类; 表示标识这个类是swa ...
分类:
其他好文 时间:
2020-01-25 22:06:27
阅读次数:
98
sqoop安装完毕后,还需要一些坑爹的配置,此处瑾纪录下过程以及遇到过的麻烦: 1.下载sqoop并加mysql驱动包 http://mirror.bit.edu.cn/apache/sqoop/,下载,如下载sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz, 将mysql( ...
分类:
其他好文 时间:
2020-01-25 20:49:13
阅读次数:
103
我们很容易发现,一个数最多只有一个大于$\sqrt{n}$的质因子。 证明:假设$\exists{n}\in\mathbb{R},n$有两个大于$\sqrt{n}$的质因子,分别记为$p_1,p_2$, 则$n\geqslant p_1p_2$, 又$p_1,p_2 \sqrt{n}$, $\the ...
分类:
其他好文 时间:
2020-01-25 14:19:02
阅读次数:
106