摘要: 这道题太坑了,from 和to有可能写反,还得正过来;推桌子时间限制:1000ms | 内存限制:65535KB难度:3描述The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.The floor has 200 rooms each on the north side and south side along the corridor. Recently the Company made a plan to 阅读全文
posted @ 2013-10-25 17:16 ABCDL 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 背包问题时间限制:3000ms | 内存限制:65535KB难度:3描述现在有很多物品(它们是可以分割的),我们知道它们每个物品的单位重量的价值v和重量w(1#includeusing namespace std;typedef struct{ int v;int w;}p;p a[11];int cmp(p a,p b){ return a.v>b.v;}int main(){ int t,n,m,i,sum; scanf("%d",&t); while(t--) { sum=0; scanf("%d%d",&n,&m); 阅读全文
posted @ 2013-10-25 14:07 ABCDL 阅读(175) 评论(0) 推荐(0) 编辑