摘要:
paip.数据库发邮件通知配置 作者Attilax , EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn.net/attilax 建立了维护计划--通知操作员,run,失败.. 查看sql,EXECUTE msdb.dbo.sp_notify_operator @name=N'attilax',@subject=N'bek ok2',@body=N'bek ok body2' run,说邮件配置文件没有...但是邮件已经配置了.. google,说agent设置al... 阅读全文
posted @ 2013-07-22 20:17
jlins
阅读(176)
评论(0)
推荐(0)
摘要:
第一种:用CADisplayLink可以实现不停重绘。例子: CADisplayLink* gameTimer; gameTimer= [CADisplayLink displayLinkWithTarget:self selector:@selector(updateDisplay:)]; [gameTimeraddToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; 第二种:int CCApplication::run(){ if (applicationDidFinishLaunching... 阅读全文
posted @ 2013-07-22 20:15
jlins
阅读(905)
评论(0)
推荐(0)
摘要:
Problem Description Given a circle sequence A[1],A[2],A[3]......A[n]. Circle sequence means the left neighbour of A[1] is A[n] , and the right neighbour of A[n] is A[1]. Now your job is to calculate the max sum of a Max-K-sub-sequence. Max-K-sub-sequence means a continuous non-empty sub-sequence wh. 阅读全文
posted @ 2013-07-22 20:14
jlins
阅读(180)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2013-07-22 20:11
jlins
阅读(1279)
评论(0)
推荐(0)
摘要:
Problem Description For years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficient algorithms are already available, these are the “easy” problems like sorting, evaluating a polynomial or finding the shortest path in a graph. F 阅读全文
posted @ 2013-07-22 20:09
jlins
阅读(204)
评论(0)
推荐(0)
摘要:
题目给了512MB的空间....用dp[k][i]代表以k为起点...往下面走(走直的不打岔)i步能有多少方案....在更新dp[k][i]过程中同时统计答案.. Program:#include#include#include#include#include#include#include#define ll long long#define oo 1000000007#define MAXN 50005using namespace std;struct node{ int x,y,next;}line[MAXN*2];int n,K,dp[MAXN][502],_next... 阅读全文
posted @ 2013-07-22 20:07
jlins
阅读(221)
评论(0)
推荐(0)
摘要:
原创文章,转载请注明出处:http://blog.csdn.net/donny_zhang/article/details/9408285demo功能:ios 在一定范围随机选取demo,如截屏。在点击按钮的时候,程序会根据按钮选项的范围随机抽取一个选项显示。iphone 6.1测试通过。demo说明:项目demo中 MainView.m里是主要代码。利用rand()来产生随机数。rand()的作用是随机返回一个类型为int的整数,其范围是0到RAND_MAX。demo截屏: demo主要代码://按钮响应事件- (IBAction)abcd {//radn()产生随机数,取4的模。所以 rN 阅读全文
posted @ 2013-07-22 20:06
jlins
阅读(338)
评论(0)
推荐(0)
摘要:
... 阅读全文
posted @ 2013-07-22 20:03
jlins
阅读(1931)
评论(1)
推荐(0)
摘要:
式子是很好推的,只是当时不知道如何去控制精度问题。要知道P的N次方是很小的一个数。最后的式子很简单的for(int i=0;i#include #include using namespace std;double solve(int n,double p){ double ans=p*n;//因为最后还要去看看第一个箱子,所以最后还是得乘以一个P的 double last=1;//递推的一个中间变量 for(int i=1;i<=n;i++) { last*=(n+i)*(1-p)/i*p;//因为每个中间式子都要乘以N个P,所以每个新生成的中间式子都要... 阅读全文
posted @ 2013-07-22 20:01
jlins
阅读(168)
评论(0)
推荐(0)
摘要:
这道题是看了别人的思路才做出来的。刚看完这道题没什么思路,线段的长度是10^5,操作指令数是10^5,还要记录不同颜色种类数,觉着怎么写肯定都是要超时。我当时在节点里增加了一个数组记录已经出现的颜色数,硬着头皮写了一个代码,提交后无悬念TLE。后来又想着单纯的做一个延迟标记,让更新的节点效率达到最高,访问的话直接在一次访问中访问所有的叶节点,这样的话相当于增加了查询的消耗,降低了更新的消耗。想了想,觉得这样虽然能提高不少效率,但是离能过还有段儿距离。我去看了一下别人的代码,看到这个思路,这个思路跟我第二次的想法有点儿类似,不过做了一个很强大的优化,如果节点中的num是-1的话,表示在这个节点下 阅读全文
posted @ 2013-07-22 19:59
jlins
阅读(386)
评论(0)
推荐(0)

浙公网安备 33010602011771号