上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: A.1-偏差排列 dp? 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 LL f[55][3]; 5 6 int main(){ 7 int N; 8 scanf("%d", &N); 9 f[ 阅读全文
posted @ 2018-04-29 19:51 Aguin 阅读(197) 评论(2) 推荐(0) 编辑
摘要: A - Zero-Sum Ranges 暴力 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 map<LL, LL> cnt; 5 const int maxn = 2e5 + 10; 6 LL 阅读全文
posted @ 2018-04-29 19:34 Aguin 阅读(173) 评论(0) 推荐(0) 编辑
摘要: A.字典序最大的子序列 倒着贪心 1 #include <bits/stdc++.h> 2 using namespace std; 3 char s[111111]; 4 5 int main(){ 6 string ans = ""; 7 scanf("%s", s + 1); 8 int le 阅读全文
posted @ 2018-04-28 08:41 Aguin 阅读(238) 评论(0) 推荐(0) 编辑
摘要: C - Half and Half 随便判判 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 int A, B, C, X, Y, ans = 0; 6 scanf("%d %d %d %d %d", &A, & 阅读全文
posted @ 2018-04-22 20:12 Aguin 阅读(164) 评论(0) 推荐(0) 编辑
摘要: A. No Nine 数位dp 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 5 int d[22]; 6 LL po[22], f[22][2][9]; 7 LL cal(LL x){ 8 i 阅读全文
posted @ 2018-04-22 17:03 Aguin 阅读(558) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页