- (void)time{
NSDate *now=[NSDate
date];
NSCalendar *cal=[NSCalendar
currentCalendar];
unsigned
int time=NSCalendarUnitYear|NSCalendarUnitMonth|NSCalendarUnitDay|NSCalendarUnitH...
分类:
移动开发 时间:
2015-03-16 11:01:57
阅读次数:
142
Oracle的包Package中可以有很多存储,可通过该包的总调入口在java中直接调用。//java调用oracle的package代码public boolean cal() throws java.lang.Exception { CallableStatement cstm...
分类:
数据库 时间:
2015-03-15 22:51:52
阅读次数:
156
Package左侧文件:create or replace package S02_ZFRZPT_YS_MID is procedure start_cal(strgranularity in varchar2, dtinputdt in varchar2); procedure add_j...
分类:
数据库 时间:
2015-03-15 22:43:08
阅读次数:
137
Binary Search Tree Iterator问题:Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Cal...
分类:
其他好文 时间:
2015-03-13 20:32:54
阅读次数:
149
DP/斜率优化 斜率优化基本题……等等,好像就没啥变化啊= = 嗯目测这题跟仓库建设差不多?写题的时候倒是没想这么多……直接推了公式。 $$f[i]=min\{f[j]+cal(j,i)+a[i]\}$$ 哦麻烦的还是这个$cal(j,i)$ 我们令$s[i]=\sum_{k=1}^{i}...
分类:
其他好文 时间:
2015-03-12 23:52:54
阅读次数:
195
设在node的父空间内有一点p,要求其转化到node局部空间后的坐标p_local,代码如下:node->getNodeToParentTransform();//in order node->parentToNodeTransform() got right result, we must cal...
分类:
其他好文 时间:
2015-03-11 19:36:19
阅读次数:
545
CalvinFS拿了FAST 15最佳论文;找到了失联十三年的小伙伴;年终/年初整理资料,发现做团委工作的 King 师兄对Calvin有兴趣;最近其他团队对分布式事务和存储问题/兴趣较多……几件事激发了我写这本文的动机,要知道上一篇是2012年的(虽然一直有做个人学习、工作笔记)。Yale的Cal...
分类:
数据库 时间:
2015-03-10 06:46:37
阅读次数:
376
假定输入的年份合法正确。刚开始毫无思路,觉得很难,写着写着就有灵感了。其实不难,只要掌握好循环控制就好了。写完之后,感觉其实没什么想法。就直接粘代码吧。 1 #include 2 #include 3 4 void printf_cal(unsigned); 5 int is_lea...
分类:
其他好文 时间:
2015-03-10 00:09:15
阅读次数:
535
Implement pow(x, n).
思路:二分求,注意正负号就是了。
class Solution {
public:
double cal(double x, int n) {
if (n == 0)
return 1.0;
double tmp = pow(x, n>>1);
if (n & 1...
分类:
其他好文 时间:
2015-03-09 16:14:19
阅读次数:
161
awk中NF和NR的意义,其实你已经知道NF和NR的意义了,NF代表的是一个文本文件中一行(一条记录)中的字段个数,NR代表的是这个文本文件的行数(记录数)。在编程时特别是在数据处理时经常用到。建议你看看有关awk编程方面的资料,这可是一个功能非常强大的工具。看个例子:cal 9 2003 Sept...
分类:
其他好文 时间:
2015-03-07 11:22:10
阅读次数:
236