昨天做了一题通过率比这个高的居然没有全对,可是这题得多水相比之下#include #include #include using namespace std;const int NUM_RANGE = 10001;int tbl[NUM_RANGE];int main() { int N; ...
分类:
其他好文 时间:
2014-11-15 01:27:11
阅读次数:
161
本文转载至http://www.2cto.com/net/201211/166537.htmlhttp、TCP/IP协议与socket之间的区别网络由下往上分为: www.2cto.com 物理层-- 数据链路层--网络层-- IP协议传输层-- ...
分类:
Web程序 时间:
2014-11-15 01:26:56
阅读次数:
175
两个字符串,判断他们之间的编辑距离,可以通过三个操作,删除,添加,替换。每种操作都算距离加一。例如“ab”和“abc”的距离为1.动态规划:用dis[i][j]记录string1的前i个和string2的前j个的距离。那么可以知道:1.如果str1的第i个,也就是str1[i-1]和str2的第j个...
分类:
其他好文 时间:
2014-11-15 01:25:10
阅读次数:
200
系统:ubuntu 麒麟 14.04sudo apt-get update之后,强大的apt可以安装很多软件一下是本人的安装经历1:G++sudo apt-get install g++2:flash火狐需要使用flash插件sudo apt-get install flashplugin-nonf...
分类:
系统相关 时间:
2014-11-15 01:24:42
阅读次数:
176
#include using namespace std; #define MAX 8int queen[MAX]={0};int sum = 0;void show(){ printf("("); for(int i =0;i<MAX;i++) { printf(" %d",queen[i...
分类:
编程语言 时间:
2014-11-15 01:23:48
阅读次数:
164
描述传说中能站在金字塔顶的只有两种动物,一种是鹰,一种是蜗牛。一只小蜗牛听了这个传说后,大受鼓舞,立志要爬上金字塔。为了实现 自己的梦想,蜗牛找到了老鹰,老鹰告诉它金字塔高H米,小蜗牛知道一个白天自己能向上爬10米,但由于晚上要休息,自己会下滑5米。它想知道自己在第几天 能站在金字塔顶,它想让你帮他...
分类:
其他好文 时间:
2014-11-15 01:23:42
阅读次数:
153
描述求A+B是否与C相等。输入T组测试数据。每组数据中有三个实数A,B,C(-10000.0 2 #include 3 4 int main(){ 5 int T; 6 double a; 7 double b; 8 double c; 9 10 ...
分类:
其他好文 时间:
2014-11-15 01:23:38
阅读次数:
185
通过阶段性计算减少一次性的大值计算#include int main(){ int t, a, b, i; __int64 c; scanf("%d", &t); while(t--) { scanf("%d%d", &a, &b); if(...
分类:
其他好文 时间:
2014-11-15 01:22:56
阅读次数:
121
1 #include 2 #include 3 4 //判断 101-200 之间有多少个素数,并输出所有素数. 5 int 6 main(void) { 7 int s = 101, e = 200; 8 int count = 0; //素数总个数. 9 i...
分类:
其他好文 时间:
2014-11-15 01:22:20
阅读次数:
130
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-11-15 01:20:40
阅读次数:
134