摘要: 【问题描述】 在《Harry Potter and the Deathly Hallows》中,Harry Potter他们一起逃亡,现在有许多的东西要放到赫敏的包里面,但是包的大小有限,所以我们只能够在里面放入非常重要的物品,现在给出该种物品的数量、体积、价值的数值,希望你能够算出怎样能使背包的价 阅读全文
posted @ 2016-10-05 21:31 外婆桥 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #define N 1005 using namespace std; int n,m,maxn,minn; int t1[N],t2[N]; bool f[N 阅读全文
posted @ 2016-10-05 21:16 外婆桥 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题解:水题,毕竟连我这么个大蒟蒻都做出来了。orz。 #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> #define N 100005 using namespace 阅读全文
posted @ 2016-10-05 21:14 外婆桥 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 2bc*cosA=b^2+c^2-a^2 #include<cstdio> #include<cstring> #include<iostream> #include<cmath> #include<algorithm> using namespace std; const double pi=3. 阅读全文
posted @ 2016-10-05 21:08 外婆桥 阅读(142) 评论(0) 推荐(0) 编辑