码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
Spring——IoC原理
一、概念          IoC是Inversion of Control的缩写,有的翻译成“控制反转”,还有翻译为“控制反向”或者“控制倒置”。 二、什么是IoC         IoC就是IoC,不是什么技术,与GoF一样,是一种设计模式。在Spring中控制反转是Spring框架的核心,其原理是基于OO设计原则的:Don't call us,we'll call you(...
分类:编程语言   时间:2014-07-30 01:08:42    阅读次数:282
HDU 4311 Meeting point-1 && HDU 4312 Meeting point-2
这俩个题 题意::给出N(#include #include #include #include using namespace std;typedef long long LL;struct info{ LL x,y; int cnt; info(){} info(int ...
分类:其他好文   时间:2014-07-28 23:54:54    阅读次数:550
Codeforces 50C Happy Farm 5 凸包
题目链接:点击打开链接 == 难得的y出了一道计算几何 #include #include #include #include #include using namespace std; #define INF 999999999.9 #define PI acos(-1.0) #define ll long long struct Point { ll x, y,...
分类:移动开发   时间:2014-07-28 00:15:29    阅读次数:326
uva 10458 - Cricket Ranking(容斥+高精度)
题目连接:uva 10458 - Cricket Ranking 题目大意:给定k和n,表示有k个比赛,总共要的n分,每个比赛可以得l~r的分数,问说可以有多少种得分方式。 解题思路:容斥,可以参考Codeforces 451E. #include #include #include using namespace std; typedef long long ll; con...
分类:其他好文   时间:2014-07-28 00:06:29    阅读次数:476
hdu 1176 免费馅饼
http://acm.hdu.edu.cn/showproblem.php?pid=1176 1 #include 2 #include 3 #include 4 #define maxn 200000 5 #define ll __int64 6 using namespace std; 7...
分类:其他好文   时间:2014-07-27 23:06:09    阅读次数:205
hdu 1165 Eddy's research II
http://acm.hdu.edu.cn/showproblem.php?pid=1165 1 #include 2 #include 3 #include 4 #define ll __int64 5 using namespace std; 6 7 ll A(ll m, ll n) 8...
分类:其他好文   时间:2014-07-27 22:52:39    阅读次数:211
Lesson 25-26 Distractions at the Wheel
一 Words 1 distraction 使分心,娱乐,使恼火n e.g. A very clingy child can drive a parent to distraction.一个非常黏人的孩子会让父母不胜其烦。 2 at the wheel 在驾驶室,当主管 e.g. I’ll take...
分类:其他好文   时间:2014-07-27 21:38:15    阅读次数:220
POJ 3126 Prime Path
很水的一个BFS,不过还是有坑点的,就是数都是大于1000的,我在千位时取过零,想了很久 不够细心啊!!! AC代码如下: #include #include #include #include #include #include #include #include #include #include typedef __int64 LL; #define maxn 0x7f...
分类:其他好文   时间:2014-07-27 11:28:12    阅读次数:203
Frequent values
poj3368:http://poj.org/problem?id=3368题意:给你一个非下降的序列,然后查询[l,r]内出现最多数字的次数。题解:首先,因为序列是非下降的,所以相同的数字出现在在一起。所以,可以定义一个数组a[i]=k,表示第i个数出现的次数,另外还要记录几个东西,ll[i],r...
分类:其他好文   时间:2014-07-27 10:11:52    阅读次数:265
AngularJS中serivce,factory,provider的区别
一、service引导 刚开始学习Angular的时候,经常被误解和被初学者问到的组件是 service(), factory(), 和 provide()这几个方法之间的差别。This is where we‘ll start the twenty-five days of Angular calendar....
分类:Web程序   时间:2014-07-26 15:41:21    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!