摘要:
二分天数+验证#include#include#include#includeusing namespace std;const int maxn=200000+10;int n,m,k;long long s;long long a[maxn],b[maxn],c[maxn];int t[maxn... 阅读全文
摘要:
先算出目标状态,然后拿当前状态与目标状态对比,即可算出答案#include#include#include#includeusing namespace std;const int maxn=100000+10;int a[maxn];int b[maxn];int main(){ int n... 阅读全文
摘要:
统计+枚举#include#include#include#includeusing namespace std;int a[15];int main(){ int n,m; scanf("%d%d",&n,&m); memset(a,0,sizeof a); for(int... 阅读全文
摘要:
水题#include#include#includeusing namespace std;const int maxn=100+10;int a[maxn];int main(){ int n,m; while(~scanf("%d%d",&n,&m)) { for... 阅读全文