摘要:
###题意:有n(n#include #include using namespace std;const int N = 501;int link[N], vis[N];int G[N][N],ans[N];int n, mid;bool DFS ( int x ){ for ( int i... 阅读全文
摘要:
Problem A:实际上对于一段数字假设和为k,每次取较大的m个进行t次减一操作,最多减去的是min(m*t,k).明白了这个结论就可以直接二分答案了。#include #define LL long longusing namespace std;LL A, B, n;LL l, t, m, a... 阅读全文
摘要:
题意: 有n(#include #include using namespace std;const int N = 209;bitset a[N], mask[N];int base[N];int Gauss ( int n ){ for ( int i = 1; i > n; fo... 阅读全文