题目链接:https://leetcode cn.com/problems/bitwise and of numbers range/ 题目描述: 给定范围 [m, n],其中 0 int: i = 0 while m != n: m = 1 n = 1 i += 1 return m ...
分类:
其他好文 时间:
2019-08-17 21:47:18
阅读次数:
85
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre ...
分类:
其他好文 时间:
2019-08-17 18:00:35
阅读次数:
1440
https://pintia.cn/problem-sets/994805342720868352/problems/994805367156883456 ...
分类:
其他好文 时间:
2019-08-17 00:58:53
阅读次数:
99
WLD is always very lucky.His secret is a lucky number . is a fixed odd number. Now he meets a stranger with numbers:.The stranger asks him questions.E ...
分类:
其他好文 时间:
2019-08-16 22:22:43
阅读次数:
73
题目链接:http://codeforces.com/problemset/problem/9/C 题意: 输入n,输出1-n的自然数中各数位只包含0和1的数的个数。 思路: 不难知道1,10,11,100 这种是满足要求的。那么如何去求呢? 直接根据1,去找10,11 再根据10,去找100,10 ...
分类:
其他好文 时间:
2019-08-16 20:29:24
阅读次数:
72
原文:https://www.jianshu.com/p/ce08cdbc4ddb?utm_source=tuicool&utm_medium=referral 本篇文章主要介绍了VMware安装Centos7超详细过程(图文),具有一定的参考价值,感兴趣的小伙伴们可以参考一下 1.软硬件准备 软件 ...
分类:
系统相关 时间:
2019-08-14 12:34:29
阅读次数:
145
当今计算机科学的一个重要的领域就是密码学。有些人甚至认为密码学是计算机科学中唯一重要的领域,没有密码学生命都没有意义。 阿尔瓦罗就是这样的一个人,它正在设计一个为西班牙杂烩菜饭加密的步骤。他在加密算法中应用了一些非常大的素数。然而确认一个非常大的数是不是素数并不是那么简单。一个费时的方法是用比这个数 ...
分类:
其他好文 时间:
2019-08-14 10:58:36
阅读次数:
87
知识概要:在kvm那章,我们知道centos7默认是启用lvm的,vg组名为centos,根分区所在文件系统名为/dev/mapper/centos-root,默认根分区是分50G的接下来进入正题随着使用的深入,根分区总是不够用的,此时需要扩容,在线扩容无疑是最好的一.先添加一块磁盘,你不重启,用fdisk-l是看不到的,此时需要执行下面脚本#不关机使添加硬盘生效numbers=`ls-l/sys
分类:
其他好文 时间:
2019-08-13 18:48:21
阅读次数:
177
While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University,noticed that the telephone number of his brother-in- ...
分类:
其他好文 时间:
2019-08-13 00:34:23
阅读次数:
101
2019/8/4 COMP9319 2019T2 Assignment 2COMP9319 2019T2 Assignment 2: RLFM Index(Run-Length Encoded BWT)Your task in this assignment is to create a searc ...
分类:
其他好文 时间:
2019-08-11 20:59:37
阅读次数:
75