现在位置: 首页 > duly发表的所有文章
  • 07月
  • 18日
综合 ⁄ 共 1022字 评论关闭
题目: Compare two version numbers version1 and version 2. If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. 比较版本1和版本2,如果版本1 > 版本2,返回1,如果版本1 < 版本2,则返回-1,其他情况返回0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate number sequences. 假设版本字符串非空,且只包含数字和字符' .  '。字符......
阅读全文
  • 08月
  • 14日
综合 ⁄ 共 1671字 评论关闭
不想被淘汰,就别做这八种人! 收藏 社会一定会淘汰不争气的人,不想被淘汰就别出现在这八种人之内。     1)八小时之外不再学习 的人     胡适先生说:人与人的区别在于八小时之外如何运用。有时间的人不能成功 ,挤时间的人才能成功。八小时之内决定现在,八小时之外决定未来 。什么样的想法什么样的生活。有学习才有选择权,没有知识,要有常识;没有常识,走进教室。不是社会发展太快,是我们思维反应太慢,为什么我们思维太慢,是我们没有跟上学习。人生有两大悲哀:结婚之后不再恋爱,毕业以后不再学习。     拒绝学习,就......
阅读全文
  • 05月
  • 01日
综合 ⁄ 共 769字 评论关闭
#include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <iostream> #include <queue> #include <stack> #include <map> using namespace std; #define LL long long LL X = 1000000000000ll; struct nod{ int r,k; } re[12000]; int cnt; LL oor0(int r,int k) { LL ret=0; for(int i=1;i<=r;i++) { ret+=pow(k,i); if(ret>X) return -1; } return ret; } map<LL,in......
阅读全文
  • 04月
  • 03日
综合 ⁄ 共 1996字 评论关闭
Astronomers Discover Secrets About Ancient Supernovae In 2006 and 2007, astronomers associated with the Supernova Legacy Survey discovered two of the brightest supernovae ever seen. So big, in fact, that initially it wasn’t clear what they were or how far away they were at first. SNLS-06D4eu“At first, we had no idea what these things were, even whether they were supernovae or whether they were in our galaxy or a distant one, ” said scientist D. Andrew Howell in a press release. Howel......
阅读全文
  • 02月
  • 17日
综合 ⁄ 共 3255字 评论关闭
// cache     private void getjudgeinfo() {         new Thread(new Runnable() {             @Override             public void run() {                 try {                     // 1.得到DOM解析器的工厂实例                     DocumentBuilderFactory dbfactory = DocumentBuilderFactory                             .newInstance();                     // 2.从DOM工厂获得DOM解析器                     DocumentBuilder db = dbfactory.newDocumentBuilder();                     // 4. 解析XML文档的输入流......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 7994字 评论关闭
  第七章 输血管理分系统功能规范         第 一条 《输血管理分系统》是对医院的特殊资源——血液进行管理的计算机程序。包括血液的入库、储存、供应以及输血科(血库)等方面的管理。其主要目的是,为医院 有关工作人员提供准确、方便的工作手段和环境,以便保质、保量的满足医院各部门对血液的需求,保证病人用血安全。        第二条 《输血管理分系统》必须符合国家、地方有关法律、法规、规章制度的要求:        1.《中华人民共和国献血法》        2.卫生部《医疗机构临床用血管理办法》        3.卫生部《临床输血技术规范......
阅读全文
 解决方法: 1.运行 regedit 打开注册表编辑器。 2.依次展开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager目录。 3.单击Session Manager,在窗口的右边出现众多项目,找到PendingFileRenameOperations,右键单击,删除。  原因:PendingFileRenameOperations 键值存放的是当前系统会话的快照,通过它记录了一个未成功进行文件重命名的操作,在安装 Adobe CS5 系列软件时发现了这个键值的存在,它就会自作多情的认为上一个安装程序没有完成,因此会提示让重新启动。
阅读全文
  • 01月
  • 26日
综合 ⁄ 共 35字 评论关闭
http://www.javaeye.com/topic/578755
阅读全文
  • 12月
  • 28日
综合 ⁄ 共 1607字 评论关闭
(我现在已经不用下面方法了,可使用 xptemplate 插件 http://blog.csdn.net/zcube/article/details/42525973) 问题:怎样在vim中实现花括号引号自动补全,包括html标签? 解决办法:只要把下面两段代码粘贴到~/.vimrc中,就可以实现括号超强补全 <!--括号引号补全代码{{{--> " 括号引号补全 inoremap ( ()<Esc>i inoremap [ []<Esc>i inoremap { {<CR>}<Esc>O inoremap ) <c-r>=ClosePair(')')<CR> inoremap ] <c-r>=ClosePair(']')<CR> inoremap } <c-r>=CloseB......
阅读全文
  • 12月
  • 26日
综合 ⁄ 共 2295字 评论关闭
表达式 一切皆是表达式expr。5也是表达式啊,啊?对呀。好吧,听说这是编程行话,那,就用着吧。 运算符 表达式;有返回值。 运算符优先级 结合方向 运算符 附加信息 非结合 clone new clone 和 new 左 [ array() 非结合 ++ -- 递增/递减运算符 非结合 ~ - (int) (float) (string) (array) (object) (bool) @ 类型 非结合 instanceof 类型 右结合 ! 逻辑操作符 左 * / % 算术运算符 左 + - . 算术运算符 和 字符串运算符 左 << >> 位运算符 非结合 < <= > >= <> 比较运......
阅读全文
  • 11月
  • 23日
综合 ⁄ 共 3815字 评论关闭
                    Making the Grade Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3436   Accepted: 1608 Description A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. His cows do not mind climbing up or down a single slope, but they are not fond of an alternating succession of hills and valleys. FJ would like to add and remove dirt from the road so that it becomes one monotonic slope (either sloping up or dow......
阅读全文
  • 10月
  • 20日
综合 ⁄ 共 233字 评论关闭
使用Auto Layout添加Scroll View 一个scroll view的content的改变是根据它本身的bounds。如果使用Auto Layout把上下左右固定了。即使scroll view的contentSize大于frame的大小,因为限制,scrollview无法滑动。解决方法是:把scroll view添加到一个view上,然后,固定scrollview上下左右到的父view上。 更新视图,不可以使用frame,而是更新NSLayoutConstraint
阅读全文