题目: Givennpoints on a 2D plane, find the maximum
number of points that lie on the same straight line.解题思路:
第一反应:枚举两个点组成的直线,然后看其他的点在不在这条直线上,在此过程中统计最大.....
分类:
其他好文 时间:
2014-05-16 05:54:57
阅读次数:
193
添加一个Timer控件:在初始化代码中 public Form1() {
InitializeComponent(); button_Read.Enabled = false; button_Start.En...
项目名称:Floaty
Fish成员:张永、吴盈盈、王丹、周其范、董芳健会议时间:19:30-20:00会议地点:学院楼成员
donedoing遇到的问题张永无依然在做鱼不能连续响应按键董芳健完善了项目计划书,发布博客发布博客无王丹周其范无吴盈盈无
分类:
其他好文 时间:
2014-05-15 16:31:21
阅读次数:
261
1 #include 2 #include 3 using namespace std; 4
5 int main() 6 { 7 string str=""; 8 string str2=""; 9 char max;10 while
(getline(ci...
分类:
其他好文 时间:
2014-05-15 16:20:41
阅读次数:
258
前面介绍过在Linux中如何查看文件的属性,在Linux文件权限详解中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为:u:文件的拥有者g:文件所属的群组o:其他用户对于每个身份,又有四种权限,分别为:r:读取文件的权限(read)w:写入文件的权限(write)x:执行的权限(exec...
分类:
系统相关 时间:
2014-05-15 16:12:51
阅读次数:
419
Shark0.9.0错误如下:
Starting the Shark Command Line Client
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/hive/cli/CliDriver : Unsupported major.minor version 51.0...
分类:
其他好文 时间:
2014-05-15 05:42:17
阅读次数:
375
BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following erroroccurred while executing this line:G:\android\SDK\android-sdk-windows\tools\ant\build.xml:683: null returned:...
分类:
移动开发 时间:
2014-05-15 04:48:27
阅读次数:
647
【题目】
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSI...
分类:
其他好文 时间:
2014-05-15 04:30:57
阅读次数:
313
/*
* hdu 最小公倍数
* date 2014/5/13
* state AC
*/
#include
using namespace std;
int gcd(int x,int y)
{
while(x!=y)
{
if(x>y)x=x-y;
else y=y-x;
}
return x;
}
int main()
...
分类:
其他好文 时间:
2014-05-14 14:29:59
阅读次数:
225
视图和内联表值函数(inline
TVF)是两种可重用的表表达式,它们的定义储存在一个数据库对象中。一旦创建,这些对象就是数据库的永久部分;只有用删除语句显式删除,它们才会从数据库中移除。在其他很多方面,视图和内联表值函数的处理方式都类似于派生表和CTE。例如,当查询视图或内联TVF时,SQL
Se...
分类:
其他好文 时间:
2014-05-14 11:47:37
阅读次数:
264