摘要: http://poj.org/problem?id=2318 //叉积应用 #include<cstdio>#include<iostream>#include<cstring>using namespace std;#define N 5010struct P{ int x1; int x2;}p 阅读全文
posted @ 2012-02-25 20:39 pcoda 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1118 求在一条线上的点最多的点的个数 自己的代码 n^3 #include<cstdio>#include<iostream>#include<algorithm>using namespace std; struct P{ int x; in 阅读全文
posted @ 2012-02-25 18:29 pcoda 阅读(843) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3176 树塔问题,求最大和 #include<cstdio>#include<cstring>#include<iostream>using namespace std;#define N 360#define max(a,b) (a)>(b)? 阅读全文
posted @ 2012-02-25 18:13 pcoda 阅读(174) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3589 #include<cstdio>#include<cstring>#include<iostream>using namespace std;int main(){ char s1[5],s2[5]; int b[5],T,i,j; in 阅读全文
posted @ 2012-02-25 18:06 pcoda 阅读(228) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1835 一道模拟题,刚开始由于确定方向的问题不知道咋写了,幸亏同学提醒打表,才搞出来了 #include<cstdio>#include<iostream>using namespace std;int hl[6][6]={{1,5,1,1,2, 阅读全文
posted @ 2012-02-25 18:02 pcoda 阅读(373) 评论(0) 推荐(0) 编辑