CSES Coin Piles
// compile: g++ -o data data.cpp -std=gnu++20 -DLOCAL
// run: ./data < data.in
#include <bits/stdc++.h>
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#ifdef LOCAL
#endif
#define sz(v) ((int)(v).size())
#define PV(v) for (int i=0;i<v.size();++i)cout<<v[i]<<" ";cout<<endl;
#define INTINF 9223372036854775807
#define int long long

using namespace std;

int32_t main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int _; cin >> _;
    while (_--) {
        int a, b; cin >> a >> b;
        if (max(a, b) > min(a, b) * 2) {
            cout << "NO" << endl;
            continue;
        }
        if ((a + b) % 3 != 0) {
            cout << "NO" << endl;
            continue;
        }
        cout << "YES" << endl;
    }

    return 0;
}

Comments

  1. 9 months ago
    2025-12-06 2:32:59

    Heard some buzz about lucky22gamelogin. Logged in, played around. Decent, not gonna lie. Easy to get into. Worth a look if you’re hunting for something new to play. Check it lucky22gamelogin out

  2. 8 months ago
    2025-12-19 13:47:59

    Checking out ta28. This one is quite interesting. Would recommend, solid choice for something new. Let me know what you think of the website once you visit it yourself! ta28

  3. 8 months ago
    2025-12-29 6:16:18

    Alright Hit Club fanatics, hitclubgamehitclub1.com looks like another portal to the game. Anyone playing through them? Worth checking out? hitclubgamehitclub1

  4. 7 months ago
    2026-1-30 6:58:51

    911casino, interesting name. UI is clean and easy to navigate. Nothing groundbreaking, but solid overall. Could be a good place to kill some time. Check it out, maybe you’ll find something you like: 911casino

  5. 7 months ago
    2026-1-30 6:59:06

    Gameday777’s got a good selection so far. Browsing around, might drop a few bucks in and see what happens. Here it is: gameday777

  6. 7 months ago
    2026-1-30 6:59:22

    The q5betgamedownload was super quick. Ready to spin the reels and hope for a massive jackpot! Let’s get lucky. See the options here: q5betgamedownload

  7. 6 days ago
    2026-8-23 18:31:27

    I have been playing for a while now and I must say this place keeps getting better with each visit the interface is so intuitive that I never feel lost and the rewards truly make you feel appreciated it is rare to find a team that puts genuine care into their player experience so keep shining bright 68ffwin

  8. 6 days ago
    2026-8-23 18:31:45

    This site has quickly become my daily escape after work. The graphics are crisp and the games load without any annoying lag. I also appreciate how transparent they are about rules and promotions. A refreshing spot that keeps me coming back. pk333game

  9. 6 days ago
    2026-8-23 18:32:04

    Finding a site that actually pays out on time can be tricky but this place delivers every single round. The slot collections are fresh and the welcome offer gave me plenty of room to explore. You will love it phokplayslot

  10. 3 days ago
    2026-8-26 20:27:52

    The VIP treatment here is real. I feel valued as a player and the rewards are generous. I am staying with vipjilislot

Send Comment Edit Comment


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