摘要:原题:http://acm.hdu.edu.cn/showproblem.php?pid=2082 1 #include<iostream> 2 #include<iomanip> 3 #include<cstdlib> 4 #include<algorithm> 5 6 #define ASIZE 27 7 #define DPSIZE 51 8 9 using namespace std;10 11 int main(void)12 {13 int amount[ASIZE];14 int dp[DPSIZE];15 //amount和dp都
阅读全文
摘要:原题:http://acm.hdu.edu.cn/showproblem.php?pid=2037 1 #include<iostream> 2 #include<iomanip> 3 #include<cstdlib> 4 #include<algorithm> 5 6 using namespace std; 7 8 typedef struct 9 {10 int beginTime,endTime;11 } programTime;12 13 bool cmp(const programTime &a,const programT
阅读全文
摘要:原题:http://acm.hdu.edu.cn/showproblem.php?pid=2036 1 #include<iostream> 2 #include<cstdlib> 3 #include<cmath> 4 #include<iomanip> 5 6 #define SIZE 105 7 8 using namespace std; 9 10 typedef struct 11 {12 int x,y;13 } Point;14 15 double polygonArea(Point *p,int N)16 {17 double a
阅读全文