摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e6+5; 4 int n,ans,tot,maxx,mark; 5 int sum,num,len; 6 int a[maxn]; 7 bool v[maxn]; 阅读全文
posted @ 2019-06-12 12:58 Achen_sy 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 #define inf 2147483647 3 using namespace std; 4 int n, m, u, v, s, f[10005], e[10005], head[1000500], d[10005], ans, tot, 阅读全文
posted @ 2019-06-12 12:01 Achen_sy 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 华山论剑,双倍经验 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e6+5; 4 const int INF=1e9+7; 5 struct A 6 { 7 int v,w,next; 8 }e1[maxn],e 阅读全文
posted @ 2019-06-12 11:59 Achen_sy 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=4e5+5; 4 const long long INF=((1ll*1)<<60); 5 struct A 6 { 7 int v,w,next; 8 }e[maxn 阅读全文
posted @ 2019-06-12 11:50 Achen_sy 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+5; 4 struct A 5 { 6 int x; 7 double w; 8 }maxx[maxn]; 9 int n,m; 10 bool mark[ma 阅读全文
posted @ 2019-06-12 10:49 Achen_sy 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 中国人喜欢数字6和8。特别地,一些人喜欢满足含有特定个数6和8的数。现在请求出,在区间[L,R]之间的第K大的含有X个6和Y个8的数。 【输入】 输入的第一行包括4个数字,L,R,X,Y。 接下来的一行给出该组数据的询问数Q。 接下来Q行中,每行有一个整数K。 【输出】 对于某个询问, 阅读全文
posted @ 2019-06-12 09:38 Achen_sy 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+5; 4 int tot,e[20]; 5 long long c[20][20]; 6 int a,b; 7 template<class t>void re 阅读全文
posted @ 2019-06-11 15:33 Achen_sy 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+5; 4 int tot,e[40]; 5 long long c[40][40]; 6 int l,r,k,b; 7 template<class t>voi 阅读全文
posted @ 2019-06-11 14:56 Achen_sy 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 和诸位巨佬不同,蒟蒻如我,只能想到怎么统计不满足windy数条件的数 就是个爆搜 定义c[i][j][k]表示第i位且前一位为j,k表示是否满足条件 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e5+5; 4 阅读全文
posted @ 2019-06-11 10:22 Achen_sy 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e3+5; 4 const int mod=1e9+7; 5 int n,m,mark; 6 char l[maxn],r[maxn]; 7 int numl,num 阅读全文
posted @ 2019-06-11 10:20 Achen_sy 阅读(99) 评论(0) 推荐(0) 编辑