上一页 1 2 3 4 5 6 7 ··· 24 下一页
摘要: A.序列 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 const LL mod = 1e9 + 7; 5 6 int main() { 7 int n, p; 8 scanf("%d %d", 阅读全文
posted @ 2018-07-08 16:05 Aguin 阅读(158) 评论(0) 推荐(0) 编辑
摘要: A.队列Q 随便on 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e5 + 10; 4 int q[maxn], f[maxn], b[maxn], vis[maxn]; 5 stack<int> F, 阅读全文
posted @ 2018-07-08 15:56 Aguin 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 公平划分 判断异或和是否为0 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() { 5 int n, sum = 0, x; 6 scanf("%d", &n); 7 for(int i = 1; i <= n; ++i 阅读全文
posted @ 2018-06-17 23:17 Aguin 阅读(353) 评论(3) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 2 3 4 5 6 7 ··· 24 下一页