// compile: g++ -o data data.cpp -O3 -std=gnu++20 -Wall -Wextra -Wshadow -D_GLIBCXX_ASSERTIONS -ggdb3 -fmax-errors=2 -DLOCAL
// run: ./data < data.in
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#ifdef LOCAL
#include <debug/codeforces.h>
#define debug(x...) {_variables(#x);_print(x);}
#else
#define debug(x...)
#endif
template<typename...Args> void print_(Args...args){((cout<<args<<" "),...)<<endl;}
#define rep(i,a,b) for(int i=(a);i<(int)(b);++i)
#define sz(v) ((int)(v).size())
#define print(...) print_(__VA_ARGS__);
#define INTMAX (int)(9223372036854775807)
#define INTINF (int)(1152921504606846976)
#define int long long
#define MAXN 200010
map<int, int> mp;
int32_t main() {
ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
int n, m; cin >> n >> m;
vector<int> s(n-1), x(m), a(n);
rep(i, 0, n-1) cin >> s[i];
rep(i, 0, m) cin >> x[i];
rep(i, 1, n) a[i] = s[i-1] - a[i-1];
rep(i, 0, n) {
int d = i&1 ? -1 : 1;
rep(j, 0, m) ++mp[(x[j] - a[i]) * d];
}
int ans = 0;
for (auto [key, value]: mp) ans = max(ans, value);
cout << ans << endl;
return 0;
}
Yo, check out this site 123win58! Been kicking around and it’s got some decent stuff. Not gonna lie, the interface is a bit clunky, but the selection is pretty solid. Give it a whirl, might surprise you!
Alright fellas, gachoic1 is the place to be! Been following them for a while now and always get my fix of intense cockfighting action. Easy to navigate and always up-to-date. Check it out gachoic1.
Alright, so I hopped onto 393bet11 the other day. The interface is pretty smooth, easy to navigate. Deposited a little something and played some poker. Worth a look if you’re bored! More info here: 393bet11
Finding a trustworthy site can be hard but this one feels legit. The customer support answered my questions in minutes. Love the efficiency of idzuma78.
The registration was so quick and the welcome bonus is actually generous. I am really enjoying the slot variety here. Definitely visit 55vip777loginregister to get started.