架构以及我理解中架构的本质
在开始谈我对架构本质的理解之前,先谈谈对今天技术沙龙主题的个人见解,千万级规模的网站感觉数量级是非常大的,对这个数量级我们战略上 要重 视 它 , 战术上又 要 藐 ...
分类:
其他好文 时间:
2016-10-22 15:16:04
阅读次数:
353
#include<iostream>#include<string>using namespace std;class Bank { public: Bank(string _name) { name = _name; } string getName() const { return name; ...
分类:
其他好文 时间:
2016-10-22 15:14:53
阅读次数:
211
#include<iostream>using namespace std;int main(){ long long a,b; long long d,e; while(cin>>a>>b){ d=a;e=b; int c; if(a<b){ long long t; t=a; a=b; b=t; ...
分类:
其他好文 时间:
2016-10-22 15:13:56
阅读次数:
210
注:不能直接格式化所要删的系统所在盘,会导致没有引导,打都打不开。 设置默认系统 修改引导 再格式化就OK了 ...
分类:
其他好文 时间:
2016-10-22 15:13:33
阅读次数:
194
官网地址:https://packagecontrol.io/installation INSTALLATION Simple The simplest method of installation is through the Sublime Text console. The console i ...
分类:
其他好文 时间:
2016-10-22 15:12:09
阅读次数:
270
第一步:ldap + kerberos 整合 ,参考之前的文章 第二步:google authentication 安装配置,参考之前的文章 第三步:整合 ldap + kerberos + google authentication 1. 由于sshd默认在使用了秘钥或者kerberos验证的时候 ...
分类:
其他好文 时间:
2016-10-22 15:11:26
阅读次数:
524
只能输入1个数字 表达式 ^\d$ 描述 匹配一个数字 匹配的例子 0,1,2,3 不匹配的例子 只能输入n个数字 表达式 ^\d{n}$ 例如^\d{8}$ 描述 匹配8个数字 匹配的例子 12345678,22223334,12344321 不匹配的例子 只能输入至少n个数字 表达式 ^\d{n ...
分类:
其他好文 时间:
2016-10-22 15:11:20
阅读次数:
332
#include<iostream>using namespace std;int main(){ int ts; cin>>ts; for(int i=0;i<ts-1;i++){ int n,a,b; while(cin>>n){ int sum = 0; while(n--){ int t; ...
分类:
其他好文 时间:
2016-10-22 15:11:37
阅读次数:
171
top K 问题 分治法(哈希/Trie树(公共前缀)) -> 最小堆(多线程) 重复数问题 位图法(空换时, O(n)时间) 排序问题 分治 [桶排序] 、位图法 参考: ...
分类:
其他好文 时间:
2016-10-22 15:09:43
阅读次数:
192
#include<iostream>#include<cmath>using namespace std; class Point{ private: double x,y; public: Point(); Point(double xv,double yv); Point(Point& pt); ...
分类:
其他好文 时间:
2016-10-22 15:10:14
阅读次数:
219
实验一:字符判断 1.实验要求:输入一个字符,判断它如果是小写字母输出其对应大写字母;如果是大写字母输出其对应小写字母;如果是数字输出数字本身;如果是空格,输出“space”;如果不是上述情况,输出“other”。 2.代码: 3.运行结果: 4.知识点总结:输入字符时用“char” 字符的计算 i ...
分类:
其他好文 时间:
2016-10-22 15:06:57
阅读次数:
192
#include<iostream>#include<cmath>using namespace std;int main(){ int n; cin>>n; if(n==1) { cout<<2<<endl; return 0; } n=n-1; int t=3; while(t<=104730) ...
分类:
其他好文 时间:
2016-10-22 15:06:55
阅读次数:
169
中国历史十大经典战役 NO.1 牧野之战 “牧野洋洋,……时维鹰扬,凉彼武王肆伐大商,会期清明”现代人根据史书记载的天象,甚至推算出了具体时间是公元前1106年2月4日。周武王统率兵车300乘,虎贲3000人,甲士4万5千人,汇集各部落的兵力,大破商军的共约17万人于牧野。 NO.2 城濮之战 面对 ...
分类:
其他好文 时间:
2016-10-22 15:06:57
阅读次数:
602
#include<iostream>#include<string>using namespace std; class Elements{ private: int value; static int numberOfObjects; public: Elements(); Elements(co ...
分类:
其他好文 时间:
2016-10-22 15:05:33
阅读次数:
241
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5763 题意:给定两个字符串a和b,其中a中的字符串如果含有子串b,那么那部分可以被替换成*。问有多少种替换方法。 kmp求出b在a中完全匹配后的结尾位置,然后dp(i)表示匹配到i时替换的方案数(不替换 ...
分类:
其他好文 时间:
2016-10-22 15:07:51
阅读次数:
243
#include <iostream>#include <fstream> using namespace std; int main(){ string x, y, z; cin >> x >> y >> z; ifstream file1(x.c_str()); ifstream file2(y ...
分类:
其他好文 时间:
2016-10-22 15:05:03
阅读次数:
154
#include<iostream>using namespace std;int main(){ int i,j; cin>>i>>j; int max=0; for(int t=i;t<=j;t++){ int len=1; int a=t; len ++; while(a!=1){ if(a% ...
分类:
其他好文 时间:
2016-10-22 15:04:41
阅读次数:
139