摘要: A.三角形 经典暴力:由于不能构成三角形边长至少乘二,只用考虑最大的log个暴力 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e5 + 10; 4 typedef long long LL; 5 LL a 阅读全文
posted @ 2018-06-16 23:21 Aguin 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 礼物 背包 1 #include <bits/stdc++.h> 2 using namespace std; 3 int f[1111]; 4 5 int main() { 6 int T; 7 scanf("%d", &T); 8 while(T--) { 9 int N, M, K, P; 1 阅读全文
posted @ 2018-06-16 10:43 Aguin 阅读(179) 评论(0) 推荐(0) 编辑