摘要:
CF613B Skills 从大到小排序能力值,然后枚举能把几个技能升满级。对于剩下的二分答案,找到能达到的最大的最小能力值。 #include<bits/stdc++.h> using namespace std; #define int long long const int N=100005; 阅读全文
摘要:
I Count Two Three 可以预处理出所有的满足题目并且比1e9小的的数,不会很多。排个序。询问的时候二分查找就好了 #include<bits/stdc++.h> using namespace std; #define int long long int T,x,tot,a[10000 阅读全文