题目大意:输入$n,d1,d2$,你要找到$n^2$个整点 x, y 满足$0 \leqslant x, y<2n$。并且找到的任意两个点距离,既不是$\sqrt[d1]{2}$,也不是 $\sqrt[d2]{2}$。 题解:如果$d mod 2=1$,如果$a^2+b^2=d$,a和b一定一奇一偶 ...
分类:
其他好文 时间:
2018-07-05 18:19:09
阅读次数:
197
C. Covered Points Count time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given nn ...
分类:
其他好文 时间:
2018-07-05 14:58:36
阅读次数:
274
By default, vue-router doesn’t lazy load the routes unless you tell it to do it. Lazy loading of the non-critical routes is one of the points of the P ...
分类:
Web程序 时间:
2018-07-02 21:34:22
阅读次数:
259
题目背景 Farmer John最近发明了一个游戏,来考验自命不凡的贝茜。 题目描述 Farmer John has challenged Bessie to the following game: FJ has a board with dots marked at N (2 ≤ N ≤ 200) ...
分类:
其他好文 时间:
2018-06-27 20:10:40
阅读次数:
186
创建数组 <script>var i;var mycars = new Array();mycars[0] = "Saab";mycars[1] = "Volvo";mycars[2] = "BMW";for (i=0;i<mycars.length;i++){ document.write(myc ...
分类:
编程语言 时间:
2018-06-23 13:25:14
阅读次数:
234
C - *3 or /2 Time limit : 2sec / Memory limit : 1000MB Score: 300 points Problem Statement As AtCoder Beginner Contest 100 is taking place, the office ...
分类:
其他好文 时间:
2018-06-17 15:16:01
阅读次数:
283
A - Happy Birthday! Time limit : 2sec / Memory limit : 1000MB Score: 100 points Problem Statement E869120's and square1001's 16-th birthday is coming ...
分类:
移动开发 时间:
2018-06-17 15:07:03
阅读次数:
237
B - Ringo's Favorite Numbers Time limit : 2sec / Memory limit : 1000MB Score: 200 points Problem Statement Today, the memorable AtCoder Beginner Conte ...
分类:
其他好文 时间:
2018-06-17 15:06:43
阅读次数:
212
字典 要么是已经有了字典,我们调用里面的键值对 要么是空字典,我们根据实际情况放入键值对 #增加 dict1 = {}# 创建空字典后逐个添加键值对,非空字典也同样添加,如果遇到键相同的话,就会覆盖掉原先的键值对 dict1['color'] = 'red' dict1['points'] = 5 ...
分类:
其他好文 时间:
2018-06-15 17:05:48
阅读次数:
156
决策树的一些优点: 易于理解和解释。数可以可视化。 几乎不需要数据预处理。其他方法经常需要数据标准化,创建虚拟变量和删除缺失值。决策树还不支持缺失值。 使用树的花费(例如预测数据)是训练数据点(data points)数量的对数。 可以同时处理数值变量和分类变量。其他方法大都适用于分析一种变量的集合 ...
分类:
其他好文 时间:
2018-06-11 14:46:23
阅读次数:
190