摘要: 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 阅读(104) 评论(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 阅读(236) 评论(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 阅读(284) 评论(0) 推荐(0) 编辑