码迷,mamicode.com
首页 > 其他好文
【并发与负载】千万级规模高性能、高并发的网络架构经验分享
架构以及我理解中架构的本质 在开始谈我对架构本质的理解之前,先谈谈对今天技术沙龙主题的个人见解,千万级规模的网站感觉数量级是非常大的,对这个数量级我们战略上 要重 视 它 , 战术上又 要 藐 ...
分类:其他好文   时间:2016-10-22 15:16:04    阅读次数:353
Bank homework 10 2016 4 25
#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
Sublime Text安装Package Control
官网地址: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 安装配置,参考之前的文章 第三步:整合 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
1096 A+B for Input-Output Practice (VIII)
#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
1000. Circle and Rectangle
#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
1561 PRIME
#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
1001. Elements and MyVector 2016 4 8
#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
[HDOJ5763]Another Meaning(KMP, DP)
题目链接: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
homework 11 2016 5 13 读入文件做输入
#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
1293. 3n+1数链问题
#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!