centos下安装完EPEL源, 然后更新一下yum缓存, 如果发现这样的错误:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again这就表明需要更新CA证书了,那么只需要更 ...
分类:
Web程序 时间:
2017-11-15 00:25:19
阅读次数:
199
4756: [Usaco2017 Jan]Promotion Counting Description The cows have once again tried to form a startup company, failing to remember from past experience ...
分类:
编程语言 时间:
2017-11-08 17:35:26
阅读次数:
218
题意:http://www.lightoj.com/volume_showproblem.php?problem=1038 题意:给一个数,用这个数的因数除以这个数,直到为1时,求除的次数的期望。 设一个数的约数有M个,E[n] = (E[a[1]]+1)/M+(E[a[2]]+1)/M+...+( ...
分类:
其他好文 时间:
2017-11-08 11:54:20
阅读次数:
166
Generally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as “asd ...
分类:
其他好文 时间:
2017-11-07 01:25:20
阅读次数:
171
访问html可以正常访问,但是访问PHP则错误,原因: nginx不能正常通过FastCGI结果访问PHP 查看php-fpm是否正常运行: 果然没有,重启php-fpm: 重启之后 恢复正常 ...
分类:
其他好文 时间:
2017-11-06 19:01:21
阅读次数:
293
[luogu P3065] [USACO12DEC]第一!First! 题目描述 Bessie has been playing with strings again. She found that by changing the order of the alphabet she could ma ...
分类:
其他好文 时间:
2017-11-06 17:58:23
阅读次数:
256
洛谷P3605 [USACO17JAN]Promotion Counting晋升者计数 题目描述 The cows have once again tried to form a startup company, failing to remember from past experience th ...
分类:
其他好文 时间:
2017-11-06 15:56:02
阅读次数:
160
您可能听说过,带有 yield 的函数在 Python 中被称之为 generator(生成器),何谓 generator ? 我们先抛开 generator,以一个常见的编程题目来展示 yield 的概念。 如何生成斐波那契數列 斐波那契(Fibonacci)數列是一个非常简单的递归数列,除第一个 ...
分类:
编程语言 时间:
2017-11-02 21:09:06
阅读次数:
207
题目大意:给你个无向图,每条边非黑即白,判断其生成树能否包含斐波那契数条白边 具体思路:把边赋一个权值(白边为1,黑边为0),做一遍最小生成树,做一遍最大生成树 然后我们就可以知道至少要几条白边,至多要几条白边 然后判一下这个区间内有没有斐波那契数就好了 AC代码 ...
分类:
其他好文 时间:
2017-10-29 23:17:50
阅读次数:
197
问题 G: 例题6-2 数组求解Fibonacci数列问题 题目描述 Fibonacci数列的特点:第1,2个数为1,1。从第3个数开始,概述是前面两个数之和。即: 要求输出Fibonacci数列的前20个数。 Fibonacci数列的特点:第1,2个数为1,1。从第3个数开始,概述是前面两个数之和 ...
分类:
编程语言 时间:
2017-10-29 20:17:10
阅读次数:
261