摘要: AB 签到 C 开始还写个假的模拟法,后来发现可以直接贪心,从大到小枚举答案x,发现相同数的个数不超过n/x+1,且等于n/x+1的不超过n%x即可 #include<bits/stdc++.h> using namespace std; const int N=1e5+7; int n,m,ans 阅读全文
posted @ 2020-08-08 08:30 hfctf0210 阅读(174) 评论(0) 推荐(0) 编辑