码迷,mamicode.com
首页 >  
搜索关键字:div    ( 119410个结果
PAT 1041. Be Unique
昨天做了一题通过率比这个高的居然没有全对,可是这题得多水相比之下#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、TCP/IP协议与socket之间的区别
本文转载至http://www.2cto.com/net/201211/166537.htmlhttp、TCP/IP协议与socket之间的区别网络由下往上分为: www.2cto.com 物理层-- 数据链路层--网络层-- IP协议传输层-- ...
分类:Web程序   时间:2014-11-15 01:26:56    阅读次数:175
leetcode Edit Distance
两个字符串,判断他们之间的编辑距离,可以通过三个操作,删除,添加,替换。每种操作都算距离加一。例如“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装软件大全
系统: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 Problem III
描述求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
hdu 2519 新生晚会 排列组合
通过阶段性计算减少一次性的大值计算#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
c - 输出 101 至 200之间的素数.
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
[LeetCode] Plus One
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!