Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2014-11-19 21:55:36
阅读次数:
109
题意: 二维平面,给两条线段,判断形成的直线是否重合,或是相交于一点,或是不相交。解法: 简单几何。重合: 叉积为0,且一条线段的一个端点到另一条直线的距离为0不相交: 不满足重合的情况下叉积为0相交于一点: 直线相交的模板代码:#include #include #include #include...
分类:
其他好文 时间:
2014-11-19 07:19:24
阅读次数:
209
一、自动输出中文字符集select * from db into outfile 'test.csv' CHARACTER SET gbk fields terminated by ',' optionally enclosed by '"' escaped by '"' lines termina...
分类:
数据库 时间:
2014-11-18 23:05:16
阅读次数:
261
使用下面两个函数来进行创建子窗口#includeWINDOW *subwin(WINDOW *parent,int num_of_lines,int num_of_cols,int start_y,int start_x);int delwin(WINDOW *window_to_delete); ...
分类:
其他好文 时间:
2014-11-16 18:35:30
阅读次数:
192
原创: EasyUI Tree 最后一级 节点 横向排列转载请指明出处必须要写在:onLoadSuccess 事件中 ddAuthTree.tree({ lines: true, checkbox: true, ...
分类:
其他好文 时间:
2014-11-16 15:49:11
阅读次数:
382
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two ...
分类:
其他好文 时间:
2014-11-16 10:43:04
阅读次数:
154
flags-匹配标志,可能包括CASE_INSENSITIVE、MULTILINE、DOTALL、UNICODE_CASE、CANON_EQ、UNIX_LINES、LITERAL和COMMENTS的位掩码/*CASE_INSENSITIVE:启用不区分大小写的匹配。MULTILINE:启用多行模式。在多行模式中,表达式^和$仅分别在行结束符前后匹配,或者在输入序列的结..
分类:
其他好文 时间:
2014-11-16 02:00:10
阅读次数:
195
Bounding volumeFrom Wikipedia, the free encyclopediaA three-dimensional model with its bounding box drawn in dashed lines.Forbuilding codecompliance, ...
分类:
其他好文 时间:
2014-11-15 22:59:51
阅读次数:
347
问题描述:
Given n non-negative integers a1,
a2, ..., an, where each represents a point at coordinate (i,
ai). n vertical lines are drawn such that the two endpoints of line
i is at (i, ai) and (i, 0...
分类:
其他好文 时间:
2014-11-13 22:32:10
阅读次数:
251