在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源。 解决方法: 一句 ...
分类:
Web程序 时间:
2020-03-03 22:45:16
阅读次数:
107
1:入门级使用PowerDesigner软件创建数据库(直接上图怎么创建,其他的概念知识可自行学习) 我的PowerDesigner版本是16.5的,如若版本不一样,请自行参考学习即可。(打开软件即是此页面,可选择Create Model,也可以选择Do Not Show page Again,自行 ...
分类:
其他好文 时间:
2020-03-03 20:36:17
阅读次数:
63
1. 交叉类型-& 将多个类型合并成一个大类型 interface Bird { name: string, fly(): void } interface Person { age: number, talk(): void; } type BirdMan = Bird & Person; let ...
分类:
其他好文 时间:
2020-03-02 22:45:14
阅读次数:
78
这是一道二叉树遍历模板题。 大致题意就是给出 用栈模拟二叉树的中序遍历过程,推断出push的全部元素是先序序列,pop的全部元素是中序序列,最后 根据 先序+中序 = 二叉树,输出二叉树的后序序列。 注意点:如果使用 getline(cin,str),必须要考虑 元素值大于 10的情况,不然 最后一 ...
分类:
其他好文 时间:
2020-03-02 10:30:47
阅读次数:
52
在CentOS 6安装epel后出问题,报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源。 解决方法: 一句话:把/etc/yum.repos ...
分类:
Web程序 时间:
2020-03-01 14:29:58
阅读次数:
80
题意:输入一个n(2<=n<=79) 找出是否从存在abcde/fghij=n的表达式 直接枚举,对于每一个fghij,判断abcde,所有数字不相等就可以(每个数字都出现),但要注意枚举的范围,还有格式,格式真的头疼。 代码如下 #include <bits/stdc++.h> #define i ...
分类:
其他好文 时间:
2020-03-01 01:07:19
阅读次数:
72
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Wri ...
分类:
其他好文 时间:
2020-02-29 11:42:15
阅读次数:
107
A - Score UVA - 1585 水 #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(n--){ int sum=0; string s; cin>>s; int len=s.size ...
分类:
其他好文 时间:
2020-02-28 01:37:26
阅读次数:
71
There was an error with the reCAPTCHA. Please solve the reCAPTCHA again. 解决办法 俗话说:哪里有碍事的墙,哪里就使劲推好了 https://blog.azurezeng.com/recaptcha use in china 1 ...
分类:
其他好文 时间:
2020-02-27 00:48:51
阅读次数:
96
题目传送门 解题思路: 这道题其实就是求一个字符串的所有前缀及其本身的循环节(如果有),思路同另一道题. AC代码: 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 5 using namespace std; 6 7 in ...
分类:
其他好文 时间:
2020-02-25 23:16:14
阅读次数:
63