摘要:
枚举两端取了几个数,将手中的负数从小到大放回序列即可 ``` #include using namespace std; int n, m, a[55], c[55], ans = -0x7fffffff; int main() { scanf("%d%d", &n, &m); for (int i 阅读全文
摘要:
https://www.luogu.com.cn/problem/AT_abc128_d ``` #include using namespace std; int n, m, g[1005][1005], fl, vis[1005], col[1005]; void dfs(int u) { // 阅读全文
摘要:
``` #include using namespace std; define N 1000000 int b[1000005], n, cnt; int main(){ scanf("%d",&n); for(int i = 2; i*i using namespace std; int n,m 阅读全文
摘要:
//木桶原理:桶能装的水的多少取决于最短的木板。 #include<iostream> #include<cstdio> #include<stack> #include<cstring> #include<queue> using namespace std; int n,m; const int 阅读全文