100/100/15/100第三题求一下解答,顺便贴一下第四题较笨的解法(就是暴力双重循环优化了下,分组二分)#include <bits/stdc++.h> using namespace std; int main() { int n, x; cin >> n >> x; map<int, vector<int>> cnt; long long ret = 0; for (int i = 0; i < n; ++i) { int num; cin...