第一题, 类似两数之和, 维护一下前面和他互补的数出现的次数 #include <iostream> #include <vector> #include <unordered_map> using namespace std; typedef long long LL; const int M = 998244353; int main() { int n, m; cin >> n >> m; vector<LL> a(n + 10, 0); unordered_map<LL, vector<LL>&g...