摘要:
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
阅读(166)
评论(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
阅读(863)
评论(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
阅读(176)
评论(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
阅读(233)
评论(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
阅读(380)
评论(0)
推荐(0)