AtCoder abc255 E
// 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;
}

Comments

  1. 2 months ago
    2025-12-06 2:29:46

    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!

  2. 2 months ago
    2025-12-19 13:44:47

    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.

  3. 1 month ago
    2025-12-29 6:13:06

    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

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
Previous
Next