上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 329 下一页
摘要: Problem Description最近xhd正在玩一款叫做FATE的游戏,为了得到极品装备,xhd在不停的杀怪做任务。久而久之xhd开始对杀怪产生的厌恶感,但又不得不通过杀怪来升完这最后一级。现在的问题是,xhd升掉最后一级还需n的经验值,xhd还留有m的忍耐度,每杀一个怪xhd会得到相应的经验,并减掉相应的忍耐度。当忍耐度降到0或者0以下时,xhd就不会玩这游戏。xhd还说了他最多只杀s只怪。请问他能升掉这最后一级吗? Input 输入数据有多组,对于每组数据第一行输入n,m,k,s(0 #include #include using namespace std;struct no... 阅读全文
posted @ 2013-07-23 18:37 jlins 阅读(241) 评论(0) 推荐(0)
摘要: 线段树的扫描线#include #include #include #define MAXN 2222using namespace std;struct line{ double s,e,h,type;//记录的是每一条线的起点 终点 距离X周的面积}L[MAXN]; //是底还是高 底是1高是-1 意味着底就是覆盖。高就是删除double tree[MAXN>1; if(X[mid]==tag)return mid; else if(X[mid]>tag)to=mid-1; else bo=mid+1; } return -1... 阅读全文
posted @ 2013-07-23 18:33 jlins 阅读(168) 评论(0) 推荐(0)
摘要: 题目链接: http://poj.org/problem?id=1037 分析: 很有分量的一道DP题!!! (参考于:http://blog.csdn.net/sj13051180/article/details/6669737 )#include #include #include #include #include #include #include #include using namespace std;long long up[25][25];long long down[25][25];long long ans[25];void getfirst(long long n,lon 阅读全文
posted @ 2013-07-23 18:31 jlins 阅读(230) 评论(0) 推荐(0)
摘要: 北京时间2013年7月1日: 领先的CMS研发软件厂商--上海逐浪CMS软件科技有限公司发布其年中重要更新,并以Zoomla!逐浪CMS2 X1.1为版本号向全球用户投递新版软件。此次更新包括: 1、发布了带有微信接口与自动应答的软件产品[扩展功能-移动与微信]; 2、增加了网页截屏与在线图片功能,并集成了百度ueditor编辑器; 3、改进IE10兼容性 4、增进win8兼容,支持将网站“钉”在win8的metro开始界面; 5、增进用户安全,建议用户开启用户安全验证码,开启后增进用户安全体制;7、修复云盘支持不合格扩展名BUG;8、增加设备管理器接入;9、编辑器支持直接回车中文输入行惯(C 阅读全文
posted @ 2013-07-23 18:29 jlins 阅读(203) 评论(0) 推荐(0)
摘要: 转载请注明出处,谢谢http://blog.csdn.net/ACM_cxlove?viewmode=contents by---cxlove题意:给出一个自动机,给出所有的转移,其中还有一个矩阵,如果(u,c)=0,直接转移,字符c被接收,否则也会转移但是字符c不会被转移,也就是下一个字符依旧是字符c。http://acm.sgu.ru/problem.php?contest=0&problem=201 题意理解了很久。。。。。自动机都给出了状态和转移,显然是个DP。。。但是由于存在(u,c)=1的情况,即字符不变,所以需要预处理一下,得到最终接受字符的状态记忆化搜索即可,可能出现死 阅读全文
posted @ 2013-07-22 20:32 jlins 阅读(266) 评论(0) 推荐(0)
摘要: 网上有不少的这类的文章,以是参照这些文章后,自己实际运行的结果。系统使用的是WIN7 旗舰版。1.打开CMD命令后,连接到SMTP服务器,如连接到QQ的SMTP服务,输入命令 telnet smtp.qq.com 25,见下图,其中25为SMTP协议的默认端口,要了解各协议默认端口后,可以参见http://blog.csdn.net/xxdddail/article/details/9408491。 2.基于SMTP命令的操作,具体请参见下图(附Base64编码解码网站http://base64.xpcha.com/) 注:在与服务器进行身分确认时,如果输入的是helo hello,可出现如下 阅读全文
posted @ 2013-07-22 20:31 jlins 阅读(473) 评论(0) 推荐(0)
摘要: Problem Description A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1. F(1) = 1, F(2) = 1, F(3) = 1,F(4) = 1, F(n>4) = F(n - 1) + F(n-2) + F(n-3) + F(n-4) Your task is to take a number as input, and print that Fibonacci num 阅读全文
posted @ 2013-07-22 20:29 jlins 阅读(186) 评论(0) 推荐(0)
摘要: 算法分析中需要对各种算法进行性能测试,下面介绍两种通用的测试方法,由于只用到标准c语言函数,所以在各种平台和编译器下都能使用。方法1:clock()函数开始计时:start = clock()结束计时:end = clock()start和end都是clock_t类型结果(秒):time = (double)(end - start) /CLOCKS_PER_SEC#include #include #include #include #include using namespace std;inline bool cmp(int a, int b){ return a > b;}con 阅读全文
posted @ 2013-07-22 20:27 jlins 阅读(491) 评论(0) 推荐(0)
摘要: A Modern JavaScript Date LibraryXDate is a thin wrapper around JavaScript's native Date object that provides enhanced functionality for parsing, formatting, and manipulating dates. It implements the same methods as the native Date, so it should seem very familiar.Also, it is non-destructive to t 阅读全文
posted @ 2013-07-22 20:24 jlins 阅读(256) 评论(0) 推荐(0)
摘要: //Howard 2013-07-19 //如何检测app是否包含PIE标志? 答:使用xCode自带的otool工具。 otool程序在Xcode.app/Contents/Developer/usr/bin目录下, 假设xCode放在 系统的应用程序目录,它所在是/Applications/Xcode.app/Contents/Developer/usr/bin (1)使用终端,进入otool所在目录: cd /Applications/Xcode.app/Contents/Developer/usr/bin (2)拷贝你编译的.app到该目录 (3)使用命令 ./otool... 阅读全文
posted @ 2013-07-22 20:20 jlins 阅读(402) 评论(0) 推荐(0)
上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 329 下一页