原题: 想了很久,想的是模仿冒泡,从大到小检查每一个数后面的数是否都与它互质,然后把它设为1(等价于放到最后不考虑) 然后一直想数据结垢 出来跟人交流,“这不是挺典型的思维题么哈哈哈” 利用性质: 调和级数求和,当n=1e5时n/1+n/2+...+n/n约等于1e7 这个性质至少是第二次见了,拿个 ...
分类:
编程语言 时间:
2019-12-07 21:12:07
阅读次数:
100
Description The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator. There are 16 handle ...
分类:
其他好文 时间:
2019-12-07 21:05:15
阅读次数:
108
This is an interesting puzzle game. In the game, you need to use your brain, think carefully, operate reasonably, point your fingers to catch things, ...
分类:
其他好文 时间:
2019-12-07 19:33:20
阅读次数:
68
Active Ball is a simple game. All you need to do is aim at the food and shoot it, then collect the material. This game looks very simple, but it's a l ...
分类:
其他好文 时间:
2019-12-07 19:23:51
阅读次数:
118
题目: 给定一个二叉树和一个目标和,找到所有从根节点到叶子节点路径总和等于给定目标和的路径。 来源: https://leetcode-cn.com/problems/path-sum-ii/ 法一: 自己的代码, 没有官方题解 思路: 递归实现,类似前序遍历 # 执行用时 :44 ms, 在所有 ...
分类:
其他好文 时间:
2019-12-07 16:32:33
阅读次数:
92
题目描述 Jiajia和Wind是一对恩爱的夫妻,并且他们有很多孩子。某天,Jiajia、Wind和孩子们决定在家里玩捉迷藏游戏。他们的家很大且构造很奇特,由N个屋子和N 1条双向走廊组成,这N 1条走廊的分布使得任意两个屋子都互相可达。 游戏是这样进行的,孩子们负责躲藏,Jiajia负责找,而Wi ...
分类:
其他好文 时间:
2019-12-07 10:55:38
阅读次数:
98
一、node安装 软件地址:https://nodejs.org/en/download/ #1、下载软件包 [root@node ~]# mkdir /app [root@node ~]# cd /app/ [root@node app]# wget https://nodejs.org/dist... ...
分类:
其他好文 时间:
2019-12-06 13:16:22
阅读次数:
112
题目描述 等级: 给定两个数组,编写一个函数来计算它们的交集。 示例1: 示例2: 说明: 输出结果中每个元素出现的次数,应与元素在两个数组中出现的次数一致。 我们可以不考虑输出结果的顺序。 进阶: 如果给定的数组已经排好序呢?你将如何优化你的算法? 如果?nums1?的大小比?nums2?小很多, ...
分类:
编程语言 时间:
2019-12-06 00:39:52
阅读次数:
130
Leha somehow found an array consisting of n integers. Looking at it, he came up with a task. Two players play the game on the array. Players move one ...
分类:
其他好文 时间:
2019-12-06 00:28:45
阅读次数:
94
一、Quartus II 12.1 (32-Bit)进行硬件设计 1.所需要的系统元器件组成 2.系统电路图 二、Nios II 12.1 Software Build Tools for Eclipse进行软件学号及流水灯设计 1.程序代码 /* * "Hello World" example. ...
分类:
移动开发 时间:
2019-12-05 22:20:12
阅读次数:
214