码迷,mamicode.com
首页 >  
搜索关键字:hdu 4825 xor sum    ( 52437个结果
学习连接数据库的第三天
注意:在传值的是时候,不要传中文,尽量传数字,其次是字母1.limit:从第几条开始(n-1),显示几条$sql = "select * from movie limit $sum,$pageSize";(使用变量,可以方便数据的添加)2.隔行显示颜色a.用css添加tr:nth_child(odd...
分类:数据库   时间:2014-07-22 23:15:12    阅读次数:454
[ACM] 线段树模板
#include#includeusing namespace std;#define maxn 200005class Node{public: int l,r; int add;//附加值 int sum;}node[maxn];int getRight(int n){//获得...
分类:其他好文   时间:2014-07-22 23:14:14    阅读次数:431
[HDU 1166 敌兵布阵] 线段树 或 树状数组
1 #include 2 #include 3 #include 4 using namespace std; 5 int n,C[50005]; 6 //-------------------------- 7 int lowbit(int x){ 8 return x&-x; 9 }1...
分类:其他好文   时间:2014-07-22 23:12:33    阅读次数:311
《Thinking in C++》读书笔记——Chapter 3: The C in C++ (2)
Chapter3: The C in C++ (2)Bitwise operators(1)The bitwise exclusive or, or xor (^) produces a one in the output bit if one or the other input bit is a...
分类:编程语言   时间:2014-07-22 23:11:16    阅读次数:618
HDU 1002
A + B Problem IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 199099Accepted Submission(s): 3809...
分类:其他好文   时间:2014-07-22 23:08:54    阅读次数:260
[leetcode]Binary Tree Maximum Path Sum
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-07-22 23:07:34    阅读次数:312
OC基础第五讲--Block、数组高级、字面量
Block1.1block与函数指针函数:int sum(int x, int y){ retrun x + y;}函数指针:把上面函数原型int sum(int x, int y)中的函数名替换成(*p),即可得到一个函数指针int (*p)(int x, int y)。这个函数表示指针p指向一....
分类:其他好文   时间:2014-04-30 16:31:34    阅读次数:604
hdu 1576
模线性方程的基本应用#includeusing namespace std;int exgcd(int a,int b,int &x,int &y){ if(b==0) { x=1; y=0; return a; } int d=ex...
分类:其他好文   时间:2014-04-30 14:33:27    阅读次数:326
hdu 2999 sg函数(简单博弈)
Stone Game, Why are you always there?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 393Accepted S...
分类:其他好文   时间:2014-04-29 17:23:45    阅读次数:444
hdu 1195:Open the Lock(暴力BFS广搜)
Open the LockTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3847Accepted Submission(s): 1661Probl...
分类:其他好文   时间:2014-04-29 16:35:47    阅读次数:450
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!