启动kafka后,连接kafka消息队列报org.apache.kafka.clients.NetworkClient异常
could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
检查kafka运行日志,报The broker is trying to join the wrong clu…
A: 直接遍历即可
#include<bits/stdc.h>
using namespace std;typedef long long ll;
typedef pair<ll, ll>PII;
const int N 2e6 10;
const int MOD 998244353;
const int INF 0X3F3F3F3F;int n, m;
int main()
{cin >> n;int cnt 0;for(int i 0; i …