首页 > 其他
蟠桃记 AC 杭电
蟠桃记Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41117 Accepted Submission(s): 30915P...
分类:其他   时间:2015-04-11 20:40:14    收藏:0  评论:0  赞:0  阅读:263
打开文件
FileStream fs = new FileStream(url, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);StreamReader sr = new StreamReader(fs, System.Text.Encoding.D...
分类:其他   时间:2015-04-11 20:39:44    收藏:0  评论:0  赞:0  阅读:260
#10 Regular Expression Matching
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:其他   时间:2015-04-11 20:39:14    收藏:0  评论:0  赞:0  阅读:237
HDU 4027—— Can you answer these queries?——————【线段树区间开方,区间求和】
Can you answer these queries?Time Limit:2000MSMemory Limit:65768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4027DescriptionA lot of battles...
分类:其他   时间:2015-04-11 20:39:04    收藏:0  评论:0  赞:0  阅读:229
二级指针内存分配
int b[2]={2,3}; int c[2]={4,5}; int **p,**q,**m; q=new int*[2]; q[0]=new int; q[1]=new int; **q=c[0]; *(*q+1)=c[1]; delete q[0]; delete q[1]; dele...
分类:其他   时间:2015-04-11 20:38:54    收藏:0  评论:0  赞:0  阅读:185
Houdini中角色通用修穿插方法
公司特效组最近一半的人一直都在做着修穿插这样的一个重复的事情,听说来公司之前大家也都一直这样做着,这种完全不能把艺术家从重复劳动中解放出来的状态确实有点让人神伤。最近本人也在做着这方面工作,想借着这个机会,总结一下自己这方面的经验,也重点探讨一个能够适用常规多数角色穿插问题的解决方法。希望能做到抛砖...
分类:其他   时间:2015-04-11 20:38:44    收藏:0  评论:0  赞:0  阅读:405
#9 Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.看到题目第一想法是将数字倒过来相减,看是否为0,但是会超时。原因是大部分可能并不是,所以循环中间就退出循环了。目前这个程序是按最左位与最右位逐次比较。代...
分类:其他   时间:2015-04-11 20:38:34    收藏:0  评论:0  赞:0  阅读:92
Assert
Node.js v0.12.2 手册及文档翻译 - Assertion Testing(测试)
分类:其他   时间:2015-04-11 20:38:14    收藏:0  评论:0  赞:0  阅读:192
maven使用中遇到的问题
1.手动将jar包安装到仓库的命令示例:首先:编写命令:mvn install:install-file -Dfile=D:\lucene-highlighter-4.10.2.jar -DgroupId=org.apache.lucene-DartifactId=lucene-hightlight...
分类:其他   时间:2015-04-11 20:37:24    收藏:0  评论:0  赞:0  阅读:210
桥接模式-挣钱的设计模式。
前言:写了N多年代码,知道设计模式已经有8,9年了,用过设计模式,有一些又很好的用处。但是也有一些是不应该存在的设计模式。从这里开始:桥接模式1.作用:将一个抽象与实现解耦,以便两者可以独立的变化。(摘自wiki)2.UML3.代码:/** "Implementor" */interface Dra...
分类:其他   时间:2015-04-11 20:36:14    收藏:0  评论:0  赞:0  阅读:108
(转)溶解shader
游戏中物体腐化消失,燃烧消失时,会有从局部慢慢消失的效果,然后配合一些粒子特效,就能达到非常好的美术效果。类似效果如下:注:_DissColor为溶解主色,_AddColor为叠加色,按照溶解的移动方向来看开始色为DissColor+AddColor上图中DissColor为红色,AddColor为...
分类:其他   时间:2015-04-11 20:36:04    收藏:0  评论:0  赞:0  阅读:300
hdu 1598 find the most comfortable road
题意:给出一幅无向图,每次询问给出起点和终点,求起点到终点权值差最小的一条路,输出权值差;思路:边按权值排序,利用并查集枚举每次能使起点终点联通的情况下权值差,并每次更新最小值;#include#include#includeusing namespace std;#define INF 0x3f3...
分类:其他   时间:2015-04-11 20:35:44    收藏:0  评论:0  赞:0  阅读:229
Resetting XFCE Panels to default settings
XFCE stores it‘s configuration for the running session in?xfconfd. Feel free to back up the files you‘re going to delete first. Shut down the panel first,?xfce4-panel --quit Kill the xfce4 confi...
分类:其他   时间:2015-04-11 19:34:04    收藏:0  评论:0  赞:0  阅读:158
关于复合索引中的2个索引列谁在前谁在后的进一步讨论--实践篇
关于复合索引中的2个索引列谁在前谁在后的进一步讨论--实践篇...
分类:其他   时间:2015-04-11 19:32:34    收藏:0  评论:0  赞:0  阅读:247
LeetCode—Intersection of Two Linked Lists 找两个链表的相交位置,让长的链表先走一段
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 → a2 ↘ ...
分类:其他   时间:2015-04-11 19:32:14    收藏:0  评论:0  赞:0  阅读:269
Ruby Block
1、用于迭代器之后 Ruby的迭代器与其他语言的迭代器很不相同,它的迭代器一般都是函数,如: def three_times yield yield yield end 使用实例: three_times { puts “hello”} Ruby内置了一些迭代器如find,eac...
分类:其他   时间:2015-04-11 19:32:04    收藏:0  评论:0  赞:0  阅读:272
用mkdir()创建多层目录
使用mkdir()函数直接创建目录时,只能一层一层目录的依次创建,如果父级目录不存在,使用mk_dir()会报错:mkdir(): No such file or directory 所以最好自己封装函数来递归创建层级目录: 基本思路:从下向上层级递归操作: 步骤一,判断底层目录是否存在,存在时不操作直接返回true,否则进入第二步骤 步骤二,判断父级目录是否存在,不存在时一直递归...
分类:其他   时间:2015-04-11 19:31:54    收藏:0  评论:0  赞:0  阅读:274
E-R模型、E-R分析介绍
E-R模型、E-R分析介绍...
分类:其他   时间:2015-04-11 19:31:14    收藏:0  评论:0  赞:0  阅读:478
LeetCode #Roman To Integer#
只要做过之前的那个Integer To Roman, 这个就不会很难啦~ 掌握转换规律, 建个table就OK了 """ Programmer : EOF Date : 2015.04.11 File : rti.py E-mail : jasonleaster@gmail.com """ class Solution: # @r...
分类:其他   时间:2015-04-11 19:31:04    收藏:0  评论:0  赞:0  阅读:266
范式分析
范式分析...
分类:其他   时间:2015-04-11 19:30:54    收藏:0  评论:0  赞:0  阅读:183
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!