QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#526947#6341. The Last BattleQwerty12320 1991ms5196kbC++235.6kb2024-08-22 02:38:062024-08-22 02:38:07

Judging History

你现在查看的是最新测评结果

  • [2024-08-22 02:38:07]
  • 评测
  • 测评结果:0
  • 用时:1991ms
  • 内存:5196kb
  • [2024-08-22 02:38:06]
  • 提交

Anna

#include "Anna.h"

#ifdef LOCAL
#include "fuck.h"
#else
constexpr int SEED_DLT = 13;
#endif

#include <bits/stdc++.h>

namespace {
    using u64 = uint64_t;
    constexpr int n = 8;

    std::vector<u64> gen() {
        constexpr int K = 64;
        std::mt19937_64 rnd(2086 + SEED_DLT);
        std::vector<u64> vec(K);
        std::vector<u64> res;
        while (res.size() < K) {
            u64 val0 = rnd();
            u64 val = val0;
            for (int j = 0; j < K; j++) {
                if (val & 1ULL << j) {
                    if (vec[j]) {
                        val ^= vec[j];
                    } else {
                        vec[j] = val;
                        res.push_back(val0);
                        break;
                    }
                }
            }
        }
        return res;
    }

    const std::vector<u64> data = gen();

}  // namespace

void Anna(int X, int Y, int N, std::string s) {
    u64 mask = 0;
    for (int i = 0; i < N; i++) {
        if (s[i] == 'B') {
            mask ^= data[i];
        }
    }
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            if (i != X && j != Y) {
                Paint(i, j, mask >> i * n + j & 1);
            }
        }
    }
}

Bruno

#pragma GCC optimize("O3")
#pragma GCC target("avx2,bmi,bmi2")
#include "Bruno.h"

#ifdef LOCAL
#include "fuck.h"
#else
constexpr int SEED_DLT = 13;
#endif

#include <bits/stdc++.h>

namespace {
    using u64 = uint64_t;
    constexpr int n = 8;

    std::vector<u64> gen() {
        constexpr int K = 64;
        std::mt19937_64 rnd(2086 + SEED_DLT);
        std::vector<u64> vec(K);
        std::vector<u64> res;
        while (res.size() < K) {
            u64 val0 = rnd();
            u64 val = val0;
            for (int j = 0; j < K; j++) {
                if (val & 1ULL << j) {
                    if (vec[j]) {
                        val ^= vec[j];
                    } else {
                        vec[j] = val;
                        res.push_back(val0);
                        break;
                    }
                }
            }
        }
        return res;
    }

    const std::vector<u64> data = gen();

}  // namespace

std::string Bruno(int N, std::vector<std::vector<int>> T) {
    // if (N >= 30) {
    //     return std::string(N, 'A');
    // }

    u64 mask = 0;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            mask |= u64(T[i][j]) << i * n + j;
        }
    }

    std::vector<std::pair<int, u64>> ans;
    std::vector<u64> data2(64);

    std::vector<std::pair<int, int>> all_xy;
    for (int i = 0; i < n * n; i++) {
        all_xy.push_back({i / n, i % n});
    }
    static std::mt19937 rnd;
    // std::shuffle(all_xy.begin(), all_xy.end(), rnd);
    // for (int x = 0; x < n; x++) {
    //     for (int y = 0; y < n; y++) {
    for (auto [x, y] : all_xy) {
        u64 mk = 0;
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                mk |= u64(i == x || j == y) << i * n + j;
            }
        }
        for (int i = 0; i < n * n; i++) {
            data2[i] = data[i] & ~mk;
        }
        std::vector<u64> vec(n * n);
        for (int i = 0; i < n * n; i++) {
            if (i / n == x || i % n == y) {
                continue;
            }
            u64 val = 0;
            for (int j = 0; j < N; j++) {
                val |= (data2[j] >> i & 1) << j;
            }
            val |= u64(T[i / n][i % n]) << N;
            vec[i] = val;
        }

        bool fucked = false;
        std::vector<u64> fuck(N);
        for (int i = 0; i < vec.size(); i++) {
            u64 val = vec[i];
            // for (int j = 0; j < N; j++) {
            for (int j = 0; j < N; j = __builtin_ctzll(val)) {
                if (val >> j & 1) {
                    if (fuck[j]) {
                        val ^= fuck[j];
                    } else {
                        fuck[j] = val;
                        val = 0;
                        break;
                    }
                }
            }
            if (val) {
                fucked = true;
                break;
            }
        }
        if (std::count(fuck.begin(), fuck.end(), 0)) {
            fucked = true;
        }
        if (fucked) {
            continue;
        }

        for (int i = N - 1; i >= 0; i--) {
            for (int j = i + 1; j < N; j++) {
                if (fuck[i] >> j & 1) {
                    fuck[i] ^= fuck[j];
                }
            }
        }

        u64 res = 0;
        for (int i = 0; i < N; i++) {
            res |= (fuck[i] >> N & 1) << i;
        }
        ans.push_back({x * n + y, res});
        // break;
    }

    //     if (ans.size()) {
    //         break;
    //     }
    // }
    if (ans.size() != 1) {
        std::cerr << N << " " << ans.size() << "\n";
        for (auto [xy, val] : ans) {
            std::cerr << xy / n << ' ' << xy % n << "   " << std::bitset<43>(val) << "\n";
        }
        std::cerr << "\n";
    }
    if (ans.empty()) {
        return std::string(N, 'A');
    }

    assert(ans.size() >= 1);
    std::map<u64, int> map;
    for (auto [xy, val] : ans) {
        map[val]++;
    }

    std::pair<int, u64> max(0, 0);
    for (auto [a, b] : map) {
        max = std::max(max, {b, a});
    }

    u64 ans_mask = max.second;
    std::string ans_str(N, '-');
    for (int i = 0; i < N; i++) {
        ans_str[i] = "AB"[ans_mask >> i & 1];
    }
    return ans_str;
}

詳細信息

Test #1:

score: 100
Accepted
time: 295ms
memory: 4172kb

Manager to Anna

20000
1 7 1 A
2 3 1 A
0 1 1 A
1 1 1 A
7 4 1 A
2 3 1 A
0 3 1 B
0 7 1 A
4 2 1 B
5 4 1 A
6 0 1 B
7 3 1 A
0 7 1 A
2 3 1 A
1 6 1 A
5 2 1 B
2 7 1 B
6 3 1 A
3 3 1 A
1 7 1 A
2 3 1 A
1 2 1 A
5 3 1 A
3 5 1 A
4 3 1 A
2 3 1 A
4 6 1 B
7 3 1 B
2 3 1 A
4 4 1 A
7 3 1 A
4 5 1 B
0 7 1 A
0 3 1 B
2 0 1 B
4 1 1 A
6 0 1 ...

Anna to Manager

0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
...

Manager to Bruno

20000
1 0000000110010100000000000000000000000001000000000000000100000000
1 0001000000000000000011000001000000010000000100000000000000010000
1 1101011101000000000000000100000000000000010000000100000001000000
1 0100000000000001000000000000000000000000010000000000000000000000
1 000010000000100000000000...

Bruno to Manager

A
A
A
A
A
A
B
A
B
A
B
A
A
A
A
B
B
A
A
A
A
A
A
A
A
A
B
B
A
A
A
B
A
B
B
A
B
A
B
B
A
A
B
A
A
A
A
B
A
B
A
A
B
B
A
A
A
A
A
A
A
B
A
B
A
B
B
A
A
A
B
B
B
B
B
A
B
A
B
A
A
B
A
A
A
B
B
B
A
A
B
A
B
A
A
B
B
A
A
B
A
A
B
A
A
A
A
A
A
A
B
B
B
A
B
A
A
A
A
A
A
A
A
B
A
A
B
A
A
B
A
A
B
A
A
A
A
B
A
A
B
A
A
A
A
B
A
A
A
A
...

result:

points 1.0 Accepted: 43

Test #2:

score: 100
Accepted
time: 353ms
memory: 4108kb

Manager to Anna

20000
3 6 2 AA
6 6 2 BB
7 6 2 AA
2 7 2 BB
2 7 2 BB
6 4 2 BB
7 0 2 BB
1 4 2 BB
1 6 2 BB
5 2 2 BB
0 5 2 BB
2 7 2 BB
1 3 2 BB
7 2 2 BB
5 2 2 AA
5 1 2 AB
0 0 2 BB
6 5 2 AB
3 2 2 AA
6 1 2 BB
2 7 2 BB
4 6 2 AB
2 0 2 BB
2 1 2 BB
1 6 2 AA
7 1 2 BA
5 6 2 BA
2 6 2 AB
2 7 2 BB
5 2 2 BA
7 6 2 AA
0 0 2 BB
1 0 2 ...

Anna to Manager

0000000000000000000000000000000000000000000000000
0111100001101011110111111100001010010010001101111
0000000000000000000000000000000000000000000000000
0111101001101111111000010100100100010011101101111
0111101001101111111000010100100100010011101101111
0111010001111011111111111000001000010010001101111
...

Manager to Bruno

20000
2 0000001000000010000000000101000000000010000000000000001000000000
2 0111101000110100111101011111100000101000100100001100111011011111
2 0000001000000010000000000000001000000000000000100000001011010111
2 0111101100110110000000101111100000101000100100011001110011011110
2 011110110011011101001110...

Bruno to Manager

AA
BB
AA
BB
BB
BB
BB
BB
BB
BB
BB
BB
BB
BB
AA
AB
BB
AB
AA
BB
BB
AB
BB
BB
AA
BA
BA
AB
BB
BA
AA
BB
BA
BB
AA
BB
AB
AA
BB
BB
AA
AA
BA
AB
AB
AA
BA
BB
AB
BB
AB
BB
BB
BB
BB
BB
AB
BB
BB
AB
BB
BB
BB
BB
BB
AB
BB
AA
BB
BA
BB
BB
BB
AA
BB
BA
AA
BA
BB
BA
BB
BB
BA
BB
BB
AA
BB
BB
AA
BB
AA
BB
BA
AA
BB
BB
BB
AB
BB
BB
...

result:

points 1.0 Accepted: 43

Test #3:

score: 100
Accepted
time: 384ms
memory: 3948kb

Manager to Anna

20000
4 5 3 AAA
6 5 3 AAA
6 2 3 BAA
4 7 3 ABA
5 6 3 AAB
4 0 3 ABB
5 7 3 BAB
7 0 3 BBB
5 7 3 ABA
4 5 3 AAA
4 5 3 AAA
0 1 3 AAB
4 5 3 AAA
7 2 3 AAA
4 5 3 AAA
1 2 3 AAA
4 4 3 ABA
2 4 3 AAA
2 2 3 BBB
1 5 3 ABB
0 7 3 AAA
1 6 3 ABB
4 4 3 AAA
3 0 3 AAA
6 7 3 BBB
1 2 3 BAA
7 4 3 BBB
5 5 3 BBA
1 7 3 BAA
0 6 ...

Anna to Manager

0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
0110010110111101111001000111011000101101111000100
0000100110110010101010111111111001111001010111101
1100111101010101111110010110110010110100010110111
1000111111001010101101010011010110011010000010100
...

Manager to Bruno

20000
3 0000010000000100000000000000000010100001000000000000010000000000
3 0000010000000000000000000000000000000000000000001100111000000100
3 0111001011101111010111001010011101010001011101111110101110100100
3 0000100111011000101010100111111000001000111001111100101001111010
3 110011111010101101111101...

Bruno to Manager

AAA
AAA
BAA
ABA
AAB
ABB
BAB
BBB
ABA
AAA
AAA
AAB
AAA
AAA
AAA
AAA
ABA
AAA
BBB
ABB
AAA
ABB
AAA
AAA
BBB
BAA
BBB
BBA
BAA
BBB
AAA
BBA
AAA
AAA
ABB
BAB
ABA
AAA
BBB
AAA
ABA
BBB
ABB
AAA
BAB
AAA
AAA
BBA
AAA
ABA
AAA
AAA
AAA
BBB
BBB
ABB
AAA
ABA
AAA
AAA
BBB
BBB
BBB
BBB
AAA
BBB
AAA
AAB
BBB
BBA
BBB
AAA
ABB
AAA
AAA
...

result:

points 1.0 Accepted: 43

Test #4:

score: 100
Accepted
time: 431ms
memory: 4336kb

Manager to Anna

20000
7 3 4 BBAB
2 5 4 ABAB
3 6 4 ABAA
3 4 4 AABA
4 5 4 AABA
5 7 4 BAAA
6 3 4 BAAA
2 3 4 AABA
5 3 4 AAAA
5 2 4 AABA
3 4 4 AABA
3 3 4 AABA
3 4 4 AABA
4 3 4 BAAB
5 0 4 BBBB
5 2 4 AAAA
4 1 4 AAAA
3 4 4 AABA
4 1 4 BBBB
7 3 4 BBBB
3 4 4 AABA
4 2 4 AAAA
3 0 4 AABA
3 4 4 AABA
3 3 4 AABA
5 6 4 AABB
0 7 4 AA...

Anna to Manager

1010110101010001011000001000001010011000101101010
1101000010011110001110111001101000110001010000100
0000100110110110101010111101111001111001010111101
1100111101001101111011100011010001110100110110111
1100111101011101111010010100010011110100110110111
0111001111011101011101000011010100001010111010010
...

Manager to Bruno

20000
4 1011011010110100010011000000100000110100110000101101101000001010
4 1101010001001011000011001000111101110101101001011000100100001100
4 0000101011011011101010011011110101111001111001111100101101111011
4 1100111110100011011101010000010011000011010010111010001101100111
4 110011111010111101111001...

Bruno to Manager

BBAB
ABAB
ABAA
AABA
AABA
BAAA
BAAA
AABA
AAAA
AABA
AABA
AABA
AABA
BAAB
BBBB
AAAA
AAAA
AABA
BBBB
BBBB
AABA
AAAA
AABA
AABA
AABA
AABB
AABA
AABA
BBBB
AABA
BBAB
AABA
AABA
ABAA
AAAA
BBBB
AABA
AABB
AAAB
ABBB
BBBB
AAAA
BBBB
BBBA
BBBB
AABA
AABA
BBBB
AABB
AAAB
BBBB
ABAA
BBBB
AAAB
BABA
AAAB
AAAA
BBBB
BBAB
AABA
...

result:

points 1.0 Accepted: 43

Test #5:

score: 100
Accepted
time: 486ms
memory: 3968kb

Manager to Anna

20000
3 6 5 BBBBB
5 0 5 BBBAB
2 7 5 BAAAA
7 2 5 BBBBB
2 4 5 BAAAB
3 0 5 BBBBB
3 2 5 BBBBB
1 4 5 BBABB
3 1 5 BAABA
6 2 5 AAAAA
3 1 5 AAAAA
6 5 5 AAAAB
7 1 5 BAABA
1 6 5 BBBBB
6 2 5 ABABB
2 3 5 BBBAA
3 1 5 AAAAA
3 2 5 BAABA
7 7 5 AABAB
2 5 5 AAAAB
3 0 5 AAAAA
3 3 5 BAAAB
6 5 5 BBABB
4 5 5 BBABB
6 0 5 ...

Anna to Manager

0101111100000101011011111000011011010100010011010
0000001001000111100001110011111111011001111000011
0111001111011110000110101000011101101010111010010
0111101100001101110110000011111001001011101000001
0100110011001110100000100100100000010001110101111
1011101000001110110111110010110111001000010110100
...

Manager to Bruno

20000
5 0101111110000011010110010101000011110010011011001010001100110100
5 1000000100010001011100000111001101111110011001110110011111000011
5 0111001111101111010111101000011101010000011101110101011110100101
5 0111110110000011010110110000001111010010010011101000000101000100
5 010011100110101101001110...

Bruno to Manager

BBBBB
BBBAB
BAAAA
BBBBB
BAAAB
BBBBB
BBBBB
BBABB
BAABA
AAAAA
AAAAA
AAAAB
BAABA
BBBBB
ABABB
BBBAA
AAAAA
BAABA
AABAB
AAAAB
AAAAA
BAAAB
BBABB
BBABB
BAABA
AABBB
BBBBB
BBBBA
BAABA
BBBBB
AAABA
AAAAA
ABBBA
AAAAA
AABAA
BAABA
BAABA
BAABA
AAABA
BAABB
BAABA
AABAA
BBBAA
BABBB
BAABA
BBBBB
BBBBB
AAAAA
AAAAA
BBBBB
...

result:

points 1.0 Accepted: 43

Test #6:

score: 100
Accepted
time: 524ms
memory: 3972kb

Manager to Anna

20000
6 7 6 AAAAAB
2 7 6 ABBBBB
5 2 6 AABAAA
5 3 6 BABBBA
2 0 6 AABAAA
6 0 6 AAABBA
1 4 6 BAAAAA
3 0 6 BBBBBA
6 7 6 AABAAA
6 4 6 ABBAAA
6 2 6 ABAABA
3 3 6 BBBBBB
3 0 6 AAAABA
2 5 6 BBBBBB
1 4 6 AAAAAB
7 7 6 AABAAA
1 3 6 AAAAAA
5 5 6 ABBBBB
1 3 6 AABAAA
3 3 6 BBBBBA
6 0 6 AABBAB
5 2 6 AABAAA
3 0 6 AA...

Anna to Manager

1100100111110101000111101111010010001101100011101
1110011100101101011011110101011101001100111010101
1101111100101101111010001100110101110000110101111
0100101010101011100000111100100101101110100101111
1001111010101101011001001011100101101000111101111
1101000001111010100011010111001000101101010000100
...

Manager to Bruno

20000
6 1100100111111011010001101101111001001001011011001000010100111010
6 1110011110010110000011000101101111101011011101010110011010101011
6 1110111110101011010111010010110011001011111101011010001101101111
6 0101010101001010111000000110110010001011000100010110101001001111
6 110011111010101101001110...

Bruno to Manager

AAAAAB
ABBBBB
AABAAA
BABBBA
AABAAA
AAABBA
BAAAAA
BBBBBA
AABAAA
ABBAAA
ABAABA
BBBBBB
AAAABA
BBBBBB
AAAAAB
AABAAA
AAAAAA
ABBBBB
AABAAA
BBBBBA
AABBAB
AABAAA
AAAAAA
AABAAA
AABAAA
ABBABB
ABBABB
BBBBBB
AAAAAA
BABBAB
AABBAB
AAAAAA
BAAAAA
BBAABB
AABBBA
ABAAAA
AABBBA
AAAAAA
AAAAAA
BBBBBB
BBBBBB
BBBABB
AABAAA...

result:

points 1.0 Accepted: 43

Test #7:

score: 100
Accepted
time: 553ms
memory: 3940kb

Manager to Anna

20000
2 0 7 BBAABAB
1 0 7 AAAAAAA
7 6 7 ABBABBB
5 4 7 BBAABAB
7 5 7 BBAAAAA
1 6 7 BBAABAB
0 3 7 BBBABBB
6 1 7 BBBBBBB
1 6 7 BBAABAB
7 7 7 BABAAAB
1 4 7 BBBBABA
0 6 7 BBAABAB
1 5 7 BBAABBB
4 3 7 BBBABBB
3 5 7 AAAAAAB
0 2 7 BABAAAB
0 0 7 BBAABAB
0 0 7 BBAABAB
1 6 7 BBAABAB
4 7 7 ABBBAAB
1 6 7 BBAABAB
...

Anna to Manager

0001101111111100100000010000111011001001011111011
0000000000000000000000000000000000000000000000000
0111100010000000001111110011010000000100111100000
0000101111111101100011001000100100010101011111011
0111110001101011110111111100001010010010001001100
0000111011010110010001001000011101010100111111101
...

Manager to Bruno

20000
7 1000110111111111001010000001000010010000011101101010010101111011
7 1000000000000110000000001000000010000000100000000000000010000000
7 0111101001000010000011011110011101000000001001111100001011010111
7 0000110111110111011000011001000010010000000100011010010111110011
7 011111100011011011110011...

Bruno to Manager

BBAABAB
AAAAAAA
ABBABBB
BBAABAB
BBAAAAA
BBAABAB
BBBABBB
BBBBBBB
BBAABAB
BABAAAB
BBBBABA
BBAABAB
BBAABBB
BBBABBB
AAAAAAB
BABAAAB
BBAABAB
BBAABAB
BBAABAB
ABBBAAB
BBAABAB
BBAABAB
BBAABAB
BBAABAB
BAAAAAB
BAAAABA
BBAABAB
BBBBBBB
BBAABAB
BAABBBA
AABBBBA
AAABBAB
BBBBBAB
ABBAABB
BBAABAB
BBAABBB
AAAAAAA
BAAB...

result:

points 1.0 Accepted: 43

Test #8:

score: 100
Accepted
time: 602ms
memory: 4096kb

Manager to Anna

20000
4 1 8 AABABBAA
7 1 8 ABABBAAB
1 0 8 BABAABBA
3 2 8 AABABBAA
3 1 8 AAABAAAA
3 4 8 AAAAAAAA
0 5 8 BBBBBBBA
2 5 8 AABBAAAA
1 5 8 BBBBABBB
2 5 8 AABABBAA
1 2 8 BBBBBBBB
1 2 8 BBBBBBBB
3 1 8 BAABBABB
1 3 8 BABABAAA
2 3 8 AABABBAA
4 0 8 AABABBAA
7 5 8 AABABBBB
4 5 8 AAAAAAAA
2 0 8 BAAABBAA
4 7 8 AAB...

Anna to Manager

0110011101110000000001010101101000111010101100111
1011110111000001011011111100100110011000101110001
0110110000001001110101110111100000000001000100111
0010011111110001000001011110111000111010101000111
1011100101001011010110001100000001000001100110111
0000000000000000000000000000000000000000000000000
...

Manager to Bruno

20000
8 0111001111011100000000001001010110100001100100011110101010100111
8 1101111010110000001011011011110010001100101000101111000110011101
8 1011011010101111000000101011101001110111110000001000010010100111
8 0011001111011100010000000000010010011110111100011100101010000111
8 110111001101001010101011...

Bruno to Manager

AABABBAA
ABABBAAB
BABAABBA
AABABBAA
AAABAAAA
AAAAAAAA
BBBBBBBA
AABBAAAA
BBBBABBB
AABABBAA
BBBBBBBB
BBBBBBBB
BAABBABB
BABABAAA
AABABBAA
AABABBAA
AABABBBB
AAAAAAAA
BAAABBAA
AABABBAA
AABABBAA
AABABBAA
AABABBAA
AABAABAA
AABABBAA
BBBBBBBA
ABBAABAB
BBAAABBB
ABBBAABA
AABABBAA
AABABBAA
BBBBBBBB
AABABBAA
AAB...

result:

points 1.0 Accepted: 43

Test #9:

score: 100
Accepted
time: 648ms
memory: 3892kb

Manager to Anna

20000
5 1 9 ABBAABBBB
1 6 9 ABBAABBBB
2 6 9 AAAAAAAAA
3 5 9 BBBBBBBBB
6 0 9 AAABBAAAB
3 3 9 BBBBBBBBA
6 2 9 BBBBBAABB
7 5 9 AAAAAAAAA
6 4 9 BABBBBBAB
4 7 9 BBBBBBBBB
3 1 9 AAABAAAAA
7 1 9 ABBAABBBB
7 1 9 BABBBAABB
7 3 9 AAAAABBAA
1 3 9 AAAAAAAAA
6 6 9 AABABBAAB
4 3 9 AABBAAAAA
4 3 9 AAAAAAAAA
5 0 9 ...

Anna to Manager

0111101011011100011010001110110001101001000110000
0011111010011100001101110001000000101100100111000
0000000000000000000000000000000000000000000000000
1010011110001011000001010011110000110101010101000
0100111101001011111100001111100100100101101101111
1111000000101011111111111011111001000101010011011
...

Manager to Bruno

20000
9 0111110101110111000011010000111011100011010000100110010000110000
9 0011111100000110010011010000111011100011000000110110010001110010
9 0000001000000010010111100000001000000000000000100000001000000010
9 1010011111000010110000000000010010100011110001011010100101010000
9 101001111101001001111110...

Bruno to Manager

ABBAABBBB
ABBAABBBB
AAAAAAAAA
BBBBBBBBB
AAABBAAAB
BBBBBBBBA
BBBBBAABB
AAAAAAAAA
BABBBBBAB
BBBBBBBBB
AAABAAAAA
ABBAABBBB
BABBBAABB
AAAAABBAA
AAAAAAAAA
AABABBAAB
AABBAAAAA
AAAAAAAAA
ABBAABBBB
AAAABABBA
ABAAAAABA
ABBAABBBB
BAAAAABAB
ABBAABBBB
ABBAABBBB
ABBBABABA
BBABBBABB
AAAAAAAAA
BAAAAAAAA
ABBAABBBB
...

result:

points 1.0 Accepted: 43

Test #10:

score: 100
Accepted
time: 708ms
memory: 4136kb

Manager to Anna

20000
3 0 10 BBBBBBAABB
0 4 10 BBBBBABBBB
1 0 10 BBBABABBAA
1 6 10 BBBAABBBBA
0 4 10 AAABAAAAAB
6 0 10 ABBBBBABAB
7 0 10 BBBBBBBBBB
0 1 10 ABBBBBBBAB
0 1 10 BABBBABABA
6 4 10 BABABABABB
2 6 10 BBBABABBAA
6 1 10 BBABABAAAA
6 4 10 BBBABABBAA
4 0 10 BBBBBBBBBB
3 7 10 BBBBBBBBBB
6 4 10 BBBABABBAA
0 6 10...

Anna to Manager

1111101001010001101010110011000001010101101100010
1001101000000100011010011010000011011000100110101
1111100000001101010000111111100110111000101110111
0100111000100110001011011000011101000110011101010
0011010001010101101011101101111000010110000111001
1111110000000010100011010011101111001001101001110
...

Manager to Bruno

20000
10 1111110110010100001101010101000010110011000000101101011001100010
10 1000001110010101000000010001110100111010000011101100001001101101
10 1111110010101111000000111010100000111111110011011110001011110111
10 0100111100000001000100011000100110110000011101100011000111010100
10 1101001100111010001...

Bruno to Manager

BBBBBBAABB
BBBBBABBBB
BBBABABBAA
BBBAABBBBA
AAABAAAAAB
ABBBBBABAB
BBBBBBBBBB
ABBBBBBBAB
BABBBABABA
BABABABABB
BBBABABBAA
BBABABAAAA
BBBABABBAA
BBBBBBBBBB
BBBBBBBBBB
BBBABABBAA
BBBBBABBBB
BBBABABBAA
BBBABABBAA
BBBBBBBBBB
AABABAAAAA
ABBBABBBAA
ABAAAAABAA
AAAAAAAAAA
BBBABABBAA
BBBBBABBAB
BBBABABBAA
BBB...

result:

points 1.0 Accepted: 43

Test #11:

score: 100
Accepted
time: 763ms
memory: 3972kb

Manager to Anna

20000
7 0 11 BAABAAAAABB
2 1 11 BABBABAAAAA
7 2 11 BABBABAABBA
5 3 11 BABBABAABBA
5 7 11 BABBABAABBA
2 4 11 ABABAAAAABB
1 2 11 BBBBBABBBBB
5 6 11 ABABAAABABB
0 7 11 AAAAAAAAAAA
3 3 11 BABBABAABBA
5 2 11 ABABAAABABB
5 2 11 BABBABAABBA
7 4 11 AABBABBBABB
5 1 11 AAAAABAAAAA
5 3 11 BABBABAABBA
6 1 11 AB...

Anna to Manager

0001101000000111111111010111111011100011110110001
1101001010110110001011011110001001101000111000111
1100001010000101001001100000011011110100100100101
1100001010000101101001100000010011101001011111010
1100000010000001100101100000010101101000101110101
1111111001111100101110101111000111100101010110101
...

Manager to Bruno

20000
11 1000110110000001011111110101011111110111000011111011000100001010
11 1110100100101101000011001100010111011110010100110010001111000111
11 1110000101100001010001001110000001010111101100100110010111010111
11 1101000101000001011001001100000001000111000100010100010111101010
11 1100000101000001011...

Bruno to Manager

BAABAAAAABB
BABBABAAAAA
BABBABAABBA
BABBABAABBA
BABBABAABBA
ABABAAAAABB
BBBBBABBBBB
ABABAAABABB
AAAAAAAAAAA
BABBABAABBA
ABABAAABABB
BABBABAABBA
AABBABBBABB
AAAAABAAAAA
BABBABAABBA
ABAAABBAAAA
AAAAAAAAAAA
BAABBBABBAB
AAAAAAAAAAA
ABBBABABBBB
AAAAABAAAAA
AAAAAABABAA
BABBABAABBA
BABBABAABBA
BABBABAABBA
...

result:

points 1.0 Accepted: 43

Test #12:

score: 100
Accepted
time: 807ms
memory: 3856kb

Manager to Anna

20000
0 3 12 AAAAABABAAAA
3 7 12 AAABAAABABBA
1 5 12 BBBBBBBABBBB
5 7 12 BBAAABBBAABB
3 7 12 AAABAAABABBA
2 0 12 BBAAABBABBAB
5 1 12 AAAAAAAAAABA
6 5 12 AAABAAABABBA
2 4 12 AAAAABAAAAAB
3 7 12 AAABAAABABBA
4 3 12 BBBBBBBBBAAB
6 6 12 AAABAAABABBA
1 4 12 BABBBABAAABA
2 1 12 AAABAAABABBA
3 7 12 AAABAAA...

Anna to Manager

1101100010000011010101011100100110101101011101000
1100000110110010110101100001000010000000011111110
1111010111111000111101010100110000100100111001011
1000011111100011101001001010000111110011101111011
1100000110110010110101100001000010000000011111110
1010101111011111110000001001010011110000000010111
...

Manager to Bruno

20000
12 1100101011001100010000001100101010111100100011010111010111001000
12 1100000111011000101101000001100111000011000010010000001011111101
12 1111011010101111111110100011111010101000110001010010011110010111
12 1000011111110000111010001001010000011110000100011001110011110110
12 1100000111011001101...

Bruno to Manager

AAAAABABAAAA
AAABAAABABBA
BBBBBBBABBBB
BBAAABBBAABB
AAABAAABABBA
BBAAABBABBAB
AAAAAAAAAABA
AAABAAABABBA
AAAAABAAAAAB
AAABAAABABBA
BBBBBBBBBAAB
AAABAAABABBA
BABBBABAAABA
AAABAAABABBA
AAABAAABABBA
AAAAAAAAAAAA
AAABAAABABBA
AAABAAABABBA
AAABAAABABBA
AAABAABAABAA
AAABAAABABBA
AABAABAABAAB
BBAABBBAABBB
B...

result:

points 1.0 Accepted: 43

Test #13:

score: 100
Accepted
time: 863ms
memory: 3944kb

Manager to Anna

20000
6 1 13 BBBBBBBBBBBBB
4 0 13 AAABBBBABBBBB
4 5 13 AAABBBBABBBBB
4 5 13 AAABBBBABBBBB
1 4 13 AAABAAABAAABB
6 1 13 AAAAAAAAABAAA
1 0 13 BBBBBBBBBBBBB
5 4 13 AABBABABAAABA
0 7 13 BBBBBABBBBABB
4 1 13 BBBBABBAABBAB
7 2 13 AAAABAAAAABAA
3 7 13 AAABBBBABBBBB
4 4 13 AAAAAAAAAAAAA
5 6 13 AAAAAAAAAAAAA
...

Anna to Manager

0101001100110110101000000001101001000001101101100
1100010010011100010010000001010110111100011111111
1110010001001100001011000001001010101110011111111
1110010001001100001011000001001010101110011111111
0000111111000001010111011011110011100001010000001
0100111110000010001101011101101000111000100000110
...

Manager to Bruno

20000
13 0110100111001101100101000000000111010010000001101000010110101100
13 1110001000100111000010010000000100110011101011010111000111111111
13 1110011000100111000010011000010101111010001011010111010111111111
13 1110011000100011000010011000000100001000001011010111000111111011
13 0000111110100111111...

Bruno to Manager

BBBBBBBBBBBBB
AAABBBBABBBBB
AAABBBBABBBBB
AAABBBBABBBBB
AAABAAABAAABB
AAAAAAAAABAAA
BBBBBBBBBBBBB
AABBABABAAABA
BBBBBABBBBABB
BBBBABBAABBAB
AAAABAAAAABAA
AAABBBBABBBBB
AAAAAAAAAAAAA
AAAAAAAAAAAAA
AAABBBBABBBBB
BBBBBABBBBBBB
BAAABBBBABBBB
BABAABBAAAABB
AAAAAAABAAAAA
BBBBABBABBAAB
AAABBBBABBBBB
AAAABB...

result:

points 1.0 Accepted: 43

Test #14:

score: 100
Accepted
time: 934ms
memory: 4100kb

Manager to Anna

20000
5 0 14 AAAAAAAAAAAAAA
5 6 14 AAAAAAAAAAAAAA
4 6 14 ABAABBABABABAA
3 5 14 BBBBBAAAABBABA
3 5 14 BBBBBAAAABBABA
0 5 14 BBBBBBBBBBABAB
1 2 14 BBBABBBBBBBABB
2 5 14 BBBBBBBBBBBBBB
1 5 14 BABAABBBBBBBAB
1 6 14 ABBABBBABBBBBA
1 7 14 AAAAAAAABAAAAA
4 1 14 BBBBBBBBBBBBBB
3 6 14 BBBBBAAAABBABA
2 3 14 B...

Anna to Manager

0000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000
1010001101010000100001101101011001101010000001111
1101111010111100101100100010111001101101001000001
1101111010111100101100100010111001101101001000001
0111110010110101100011100011100010010101011001011
...

Manager to Bruno

20000
14 1000000010000000000000000000000010000000010000101000000000000000
14 0000001000000000000000000000000000000000011001110000000000000010
14 1010001110101010001000001101101101111010011001110101001000011111
14 1101111101011011001010100000010001000010111001110110100010000001
14 1101111101011111001...

Bruno to Manager

AAAAAAAAAAAAAA
AAAAAAAAAAAAAA
ABAABBABABABAA
BBBBBAAAABBABA
BBBBBAAAABBABA
BBBBBBBBBBABAB
BBBABBBBBBBABB
BBBBBBBBBBBBBB
BABAABBBBBBBAB
ABBABBBABBBBBA
AAAAAAAABAAAAA
BBBBBBBBBBBBBB
BBBBBAAAABBABA
BABAAAABABAABA
ABBBBABBBBBBBB
BAAAAAAAAABAAA
AAAAAABAAAAAAA
ABBBAABAABBAAA
AAAAAAABABAAAA
BBBBBAAAABBABA
...

result:

points 1.0 Accepted: 43

Test #15:

score: 100
Accepted
time: 988ms
memory: 4404kb

Manager to Anna

20000
7 0 15 AAAAAAAAAAAAABA
6 4 15 AABAAAABABABBAA
4 1 15 BBABBABABBBABBA
4 4 15 AAAABBABBAABAAB
5 1 15 AAAAAAAABABAAAA
4 4 15 AAAAAAAAAAAAAAA
0 4 15 BBBBBBBBBBBBBAB
0 2 15 BBBABBBBBBBBBAB
0 6 15 AAAAABAAAAABBAB
0 5 15 BAABAABABBABBBB
3 7 15 BAAABBABABBBABB
3 1 15 ABBAABBABBBAABB
5 6 15 BBBBBBBBBBA...

Anna to Manager

0010110000111101110101110110111010001000010110000
0011011000001110110000001010101010101101000001111
1001010111011011001100000101011101110001101011010
1101100001111110010111011111001101010100010110111
0001011001000011000011100101110001110001100000100
0000000000000000000000000000000000000000000000000
...

Manager to Bruno

20000
15 1001011010001111001110100111011011110100001000011011000000001010
15 0011101100000011101100000001001010100101011001001100111000011111
15 1100101011110110101001100100010101111010011110111100011011011010
15 1101110000110111100100111011011100001000001110101010000101100111
15 0100101101010000101...

Bruno to Manager

AAAAAAAAAAAAABA
AABAAAABABABBAA
BBABBABABBBABBA
AAAABBABBAABAAB
AAAAAAAABABAAAA
AAAAAAAAAAAAAAA
BBBBBBBBBBBBBAB
BBBABBBBBBBBBAB
AAAAABAAAAABBAB
BAABAABABBABBBB
BAAABBABABBBABB
ABBAABBABBBAABB
BBBBBBBBBBABBBB
BBBAABBABBBBBBB
BAABAABABBABBBB
BAABAABABBABBBB
AAAAAAAAAAAAAAA
BAABAABABBABBBB
BAABAABABBAB...

result:

points 1.0 Accepted: 43

Test #16:

score: 100
Accepted
time: 1059ms
memory: 4960kb

Manager to Anna

20000
6 7 16 BBBBBABBBABABBBB
4 3 16 ABAAAAAAAAAABAAB
2 6 16 BABBABBBBBBBABBA
2 4 16 BAABAABAAABABBBA
1 7 16 ABABBAAAABABBBBB
7 3 16 BBABABABBAABABBA
3 7 16 ABBBBBBBBBBBBBBA
6 1 16 AABAAAAABABAAABA
1 0 16 BBABBBBBABBBABBA
5 1 16 BBABABABBAABABBA
1 4 16 BBBBBBBBBABABABB
4 5 16 BBABABABBAABABBA
6 5 16...

Anna to Manager

0100110100110011110010101100100100100010110001000
1010100000111111000001010011110110001100011000000
0111111110100101011001101001101110110111000001010
1100011111011101001100110110100101110101010101001
1010110001000100000101111111000110010110101010010
1101000100100010001111110110111111010111101000011
...

Manager to Bruno

20000
16 0100110110011001111100100101100010010011000101101000010100010000
16 1011010000001111110000001010001100110011110111000110000110010000
16 0111111111010011010111100101101011010001101110111011101000010110
16 1100101111100111000000100100011001100110100110111010010101010001
16 1010110110100111001...

Bruno to Manager

BBBBBABBBABABBBB
ABAAAAAAAAAABAAB
BABBABBBBBBBABBA
BAABAABAAABABBBA
ABABBAAAABABBBBB
BBABABABBAABABBA
ABBBBBBBBBBBBBBA
AABAAAAABABAAABA
BBABBBBBABBBABBA
BBABABABBAABABBA
BBBBBBBBBABABABB
BBABABABBAABABBA
AAAAAAAAAAAAAAAA
BBABABABBAABABBA
AABBBAAAAAABBBAB
BBABABABBAABABBA
BBABABABBAABABBA
ABBABABBAAA...

result:

points 1.0 Accepted: 43

Test #17:

score: 100
Accepted
time: 1120ms
memory: 4916kb

Manager to Anna

20000
7 5 17 AAABBABBBBBABAAAA
5 2 17 BBBBBBBBBBBBBBBBB
6 2 17 AAABBABBBBBABAAAA
4 6 17 BBBBBABBBBBBABBBA
4 3 17 BBABBBBBBBBBBBABB
4 7 17 AAABBABBBBBABAAAA
2 4 17 AAAAABBAAAABBAAAB
0 6 17 BBBBBBBBBBBBBBBBB
2 6 17 AAABBABBBBBABAAAA
1 4 17 ABBBAABABBABBBBAB
4 3 17 BBBBBBBBBBBBBBBBB
5 7 17 AAAAAAAABAAA...

Anna to Manager

0101100011110001111001001111101110011111101100110
1100101111001101111101000010110000101011011000111
0111000011100001111001011111101110011110100101110
1000010000011100101010111101110010011101111000000
0000111011100010010001110000100011110100001001110
0101100011110001111101001111111110111001110110111
...

Manager to Bruno

20000
17 0101110001111100011110001001101110111100111110101100111000001010
17 1110010111010011010111101000001011000001011001110100110110100111
17 0111100001111000010111001011111110011100111110101110101101101110
17 1000011000001101001010010111100100001000110010101110110110000000
17 0001011101111000100...

Bruno to Manager

AAABBABBBBBABAAAA
BBBBBBBBBBBBBBBBB
AAABBABBBBBABAAAA
BBBBBABBBBBBABBBA
BBABBBBBBBBBBBABB
AAABBABBBBBABAAAA
AAAAABBAAAABBAAAB
BBBBBBBBBBBBBBBBB
AAABBABBBBBABAAAA
ABBBAABABBABBBBAB
BBBBBBBBBBBBBBBBB
AAAAAAAABAAAAABBA
AAAAABBABBABAAABA
BABAABABAABABAAAA
BAAABBBABAABABABB
AABABAAAAAABBABAA
BBBBABBBBBBB...

result:

points 1.0 Accepted: 43

Test #18:

score: 100
Accepted
time: 1186ms
memory: 5028kb

Manager to Anna

20000
1 6 18 BBABBBBBBABBBBBBBB
0 1 18 BBBBBBBBBBBBBBBBBB
5 1 18 BBBBBBBBBBBBBBBBBB
4 7 18 ABBAABBAAAABBBAABA
5 3 18 BBABBBBBBBBBBBBBBB
2 0 18 ABBBBBAABABBBAAABA
6 2 18 BBBBBABBBBBBBBBBBA
2 4 18 ABBAABBAAAABBBAABA
2 0 18 AAAAAAAAAAAAAAAAAA
5 4 18 ABBBBBBABBBBBBAAAB
4 6 18 AABBAABAAABAAAAABA
1 3 18 A...

Anna to Manager

0001111100111011000000001100011010001110110110011
0111100010010101100110000000100001101010000001100
1110101011110001001010110011000000001010000001100
0001110110101101011010100011011010111010000000011
0011010110011100010000101111110101110010110110011
1101011001001110011000111101101010110110001011000
...

Manager to Bruno

20000
18 0001111110010100100111001100000000011010011010000111011101100101
18 1000001100111100001001010111001101000000110000110010100001001100
18 1111010101111100001001010111001100000000111101010110100001001100
18 0001110111010110010110100100011000001000011010111101000000000110
18 0011101011010111000...

Bruno to Manager

BBABBBBBBABBBBBBBB
BBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBB
ABBAABBAAAABBBAABA
BBABBBBBBBBBBBBBBB
ABBBBBAABABBBAAABA
BBBBBABBBBBBBBBBBA
ABBAABBAAAABBBAABA
AAAAAAAAAAAAAAAAAA
ABBBBBBABBBBBBAAAB
AABBAABAAABAAAAABA
AAAAAAAAAABAABAAAA
ABBAABBAAAABBBAABA
BBBBBBBBBBBBBBBBBB
ABBBABBAAABBBBBBBA
BABAAAABAABAAAA...

result:

points 1.0 Accepted: 43

Test #19:

score: 100
Accepted
time: 1245ms
memory: 4996kb

Manager to Anna

20000
0 6 19 BABABBBBBBBBBBBBBBA
5 2 19 BBABBABBAAAABBBAABB
5 2 19 ABBAABABAABAABBBABA
5 2 19 BBABBABBAAAABBBAABB
0 4 19 AAAAAAAAABAAAAABAAA
7 0 19 BBAABBAAAAAAAABABBB
6 5 19 AAAABAAABAAAAAAAAAA
7 0 19 BABBBABABBBABBABBBB
2 3 19 BBBBAABABBBBBBBABAB
6 2 19 BBAAAABBABABABAABBA
0 5 19 ABAABABBBBBABABAB...

Anna to Manager

0011011011001111111100111011001001010100110000000
0100110111111101110000100001010011001001001110110
1000011001000010100001111010001100110111111100001
0100110111111101110000100001010011001001001110110
1101010100010000110100011111101011000100010010001
0110010110110010011011100101000011100110000010101
...

Manager to Bruno

20000
19 1100101000110101011001011111110001110111001001001010011100000000
19 0110011011011111010110000100000101000110011001110100010011110110
19 1010001100110000100100001111101000011001111101011011111111100001
19 0110011011011111010110000100000101000110000100010100010011010110
19 1101001111011010100...

Bruno to Manager

BABABBBBBBBBBBBBBBA
BBABBABBAAAABBBAABB
ABBAABABAABAABBBABA
BBABBABBAAAABBBAABB
AAAAAAAAABAAAAABAAA
BBAABBAAAAAAAABABBB
AAAABAAABAAAAAAAAAA
BABBBABABBBABBABBBB
BBBBAABABBBBBBBABAB
BBAAAABBABABABAABBA
ABAABABBBBBABABABBA
ABAAAAAAAAAAAAAAAAA
BBAABBBAABABBBBBAAB
AAAAAAAAAAAAAAAAAAA
ABAABAABAAAAAAAAABA
...

result:

points 1.0 Accepted: 43

Test #20:

score: 100
Accepted
time: 1304ms
memory: 4960kb

Manager to Anna

20000
0 2 20 BBBBBBABABBAABAAAAAA
2 7 20 ABBABBBBBABABAABABAA
7 7 20 BBAAABBBBBBBBBBBBBBB
0 2 20 BBBBBBBBBBBBBBBBBBBB
6 2 20 BBBBBBABABBAABAAAAAA
7 0 20 AAAAAAAAAAABAAAAAAAA
7 0 20 BBBBBBABABBAABAAAAAA
3 2 20 AAAABBBBBAAAAAAABBBB
7 0 20 BBBBBBABABBAABAAAAAA
1 1 20 BBBBBBBBBBAAABBBBBBA
4 2 20 BBBBBBA...

Anna to Manager

1011100001100100111110000000110100001001000001101
1001000001111100101001001110101000000111101001110
0011110111100000100110011101111001001010000010000
0100100100101111000000011110100111000111000011011
0011110101110000110010011111000000011010000001101
1001100001001101001011010100100010110010101001010
...

Manager to Bruno

20000
20 1100101010011100000110010001111100100000110010000110010000001101
20 1001000100111110000011000010100110011101101000010011110010011101
20 0011110111110001001001100011101111100100010100010010000111010111
20 1000000001100100100010111100000000011110101011100001110000011011
20 0011111010111100000...

Bruno to Manager

BBBBBBABABBAABAAAAAA
ABBABBBBBABABAABABAA
BBAAABBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBB
BBBBBBABABBAABAAAAAA
AAAAAAAAAAABAAAAAAAA
BBBBBBABABBAABAAAAAA
AAAABBBBBAAAAAAABBBB
BBBBBBABABBAABAAAAAA
BBBBBBBBBBAAABBBBBBA
BBBBBBABABBAABAAAAAA
AAAABAAAAAAAAAABBAAA
BBBBBBABABBAABAAAAAA
BBBBBBABABBAABAAAAAA
AAAAAA...

result:

points 1.0 Accepted: 43

Test #21:

score: 100
Accepted
time: 1366ms
memory: 4984kb

Manager to Anna

20000
1 4 21 BAAABBAABABAABBAAAAAA
1 1 21 ABBBAAAABAABBABBBAAAA
7 4 21 ABBBAAAABAABBABBBAAAA
7 2 21 ABBBAAAABAABBABBBAAAA
4 7 21 BBABBBBABBABBBBBBABBB
0 1 21 BAAAAAAAAAAAABAAAAAAB
6 0 21 AAAAAAAAAAAAAAAAAAAAA
4 2 21 BBAAABBABBBAAABBBAAAB
2 0 21 BBBBABAABBBBBBBABBABB
7 2 21 AABABABAABABBBBAABBAB
5 1 ...

Anna to Manager

0100110010000110110110101100010011010111101000110
1000011111111001100011111010110001010001100111110
1000011111001011111100111001111101011100101100110
1000011110101011111100110001111101011000101100110
0100100010101001101101100000110011011001010000101
1111111001111000001000011001010000010011010010101
...

Manager to Bruno

20000
21 0100111010010100010000011011001101011100010001101011111010000110
21 1100001100000110101111100111000111111010111000101000011001111110
21 1000101111101010111101100111100111110010111010101100111011010111
21 1010001111001010110111100101000111011010110000101100011001000100
21 0100100101010101011...

Bruno to Manager

BAAABBAABABAABBAAAAAA
ABBBAAAABAABBABBBAAAA
ABBBAAAABAABBABBBAAAA
ABBBAAAABAABBABBBAAAA
BBABBBBABBABBBBBBABBB
BAAAAAAAAAAAABAAAAAAB
AAAAAAAAAAAAAAAAAAAAA
BBAAABBABBBAAABBBAAAB
BBBBABAABBBBBBBABBABB
AABABABAABABBBBAABBAB
BBABBBBBBBABBBBBBBBAB
BBABBBBABBBABBABBBBBB
BBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBB...

result:

points 1.0 Accepted: 43

Test #22:

score: 100
Accepted
time: 1438ms
memory: 5192kb

Manager to Anna

20000
0 3 22 ABAABAAAAAAABAAABBBAAA
5 2 22 BAAAABAAAAAAAAAAABAAAA
0 5 22 BBBBABBBBABBABBBBBAABA
3 4 22 ABABAABAAAAAAAABAAABBA
2 1 22 AAAAABAABABAABAABAAAAA
7 4 22 BBAABBBBAABBABABBBABBB
0 0 22 ABAABAAAAAAABAAABBBAAA
7 7 22 ABAABAAAAAAABAAABBBAAA
6 4 22 AAAAAAAAAAAAAAAAAAAAAA
6 1 22 AAAAAAAABABABBBAB...

Anna to Manager

1111100100010000010011001111100110001100000011101
1001010101101100000001001000111100010000110010100
0010111110110001010110010110010101111001010101100
0101001101101001111101100110100100100000001001010
0111111100011100000011110001101000001110010010101
0111110100101100000000011101110110111110110001111
...

Manager to Bruno

20000
22 1100101011101100100001000000100110011111100011000111000000101101
22 1010101010011011000000001000100011011000011001111000001100110100
22 1101011100101111110110000101011100101010010101111100110101011100
22 0101100110110010011101100000010011000110100110010000000010010010
22 0111111111000111010...

Bruno to Manager

ABAABAAAAAAABAAABBBAAA
BAAAABAAAAAAAAAAABAAAA
BBBBABBBBABBABBBBBAABA
ABABAABAAAAAAAABAAABBA
AAAAABAABABAABAABAAAAA
BBAABBBBAABBABABBBABBB
ABAABAAAAAAABAAABBBAAA
ABAABAAAAAAABAAABBBAAA
AAAAAAAAAAAAAAAAAAAAAA
AAAAAAAABABABBBABBAAAB
ABAABAAAAAAABAAABBBAAA
ABAABAAAAAAABAAABBBAAA
AAAAAAAAAABBAAAAAAABAA
B...

result:

points 1.0 Accepted: 43

Test #23:

score: 100
Accepted
time: 1498ms
memory: 5000kb

Manager to Anna

20000
0 4 23 BBAAAABABAABAABAAAABBAA
5 6 23 BBBABAAABBABBBBAAABBBBB
0 4 23 BBBBBBBBBBBBABBBBBBBBBB
0 1 23 AABBAAAAAAAABABAAAAABBB
0 6 23 AAAAAAAAABAAAAABAAAAAAA
4 5 23 BBBBBBBBBBBBABBBBBBBBBB
5 6 23 BBBABAAABBABBBBAAABBBBB
5 5 23 BBBABAAABBABBBBAAABBBBB
3 0 23 AAAAAAAAAAAAAAAAAAAAAAA
5 2 23 AAAAAAAA...

Anna to Manager

1100010001101000101000110111111100011000100010010
1000100100111011111111001011001001011101010000101
1010001011011110101100110101001011111101001000110
1111100100000111011000011011111100100000111101011
1101000100001000111000011011101011000101010010001
0101011101000101100111010110001001111100001000110
...

Manager to Bruno

20000
23 1100101011000010001100100010010001101111111100001100101000100010
23 1000101010011100111111011001010100100100011001111110100100001011
23 1101011110101001011001111010111001100101001011111110110010001110
23 1000000011111100100000011010110000011011111110010000001110101011
23 1101001111010010100...

Bruno to Manager

BBAAAABABAABAABAAAABBAA
BBBABAAABBABBBBAAABBBBB
BBBBBBBBBBBBABBBBBBBBBB
AABBAAAAAAAABABAAAAABBB
AAAAAAAAABAAAAABAAAAAAA
BBBBBBBBBBBBABBBBBBBBBB
BBBABAAABBABBBBAAABBBBB
BBBABAAABBABBBBAAABBBBB
AAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAABBAAAAAAABBAAB
ABBBABBBABABBBAABAABABA
BBBABAAABBABBBBAAABBBBB
BBBABAAABBAB...

result:

points 1.0 Accepted: 43

Test #24:

score: 100
Accepted
time: 1585ms
memory: 5028kb

Manager to Anna

20000
3 6 24 BAAABBABABABAABAABAABBBA
5 4 24 BAAABBABABABAABAABAABBBA
7 0 24 BAAABBABABABAABAABAABBBA
6 7 24 BBBABBBAABBBBBBBBBBBBAAB
1 5 24 BABAAABAABAAABABABABBBAB
0 4 24 ABAABAAAAAAAABABBAAAAABB
7 5 24 BBAAABABABBABABBBBBBAAAB
4 5 24 BAAAABAABABAABABABABAABA
7 5 24 ABBBBBBBBABBBBABBBBBBBBA
1 4 24...

Anna to Manager

0001111011100011000000101011000001001100000110010
0001111011101011000001000001010111101100000110100
0011111111001010000000001001101011100001001100000
1001000100011000110110010111000110010101100111101
1000110100001110011001111100100001011111001100010
0001011010101000110011111000001000110110110110111
...

Manager to Bruno

20000
24 0001111101110010110000000101000001010111000001000110001001100100
24 0001111101110010110000001000000101010111011001110110000001101100
24 1001111111110010010000001000100101010111100001001110000011010111
24 1001000110001100001101100010111000011000101011000010001001111010
24 1000111010100111100...

Bruno to Manager

BAAABBABABABAABAABAABBBA
BAAABBABABABAABAABAABBBA
BAAABBABABABAABAABAABBBA
BBBABBBAABBBBBBBBBBBBAAB
BABAAABAABAAABABABABBBAB
ABAABAAAAAAAABABBAAAAABB
BBAAABABABBABABBBBBBAAAB
BAAAABAABABAABABABABAABA
ABBBBBBBBABBBBABBBBBBBBA
BAAABBABABABAABAABAABBBA
BAAABBABABABAABAABAABBBA
BBBBBABBABBABBBABBBBABBB
...

result:

points 1.0 Accepted: 43

Test #25:

score: 100
Accepted
time: 1664ms
memory: 5000kb

Manager to Anna

20000
2 2 25 BABAAAAAABBAAAAAAABBAAAAB
3 7 25 BABAAAAAABBAAAAAAABBAAAAB
2 2 25 BABAAAAAABBAAAAAAABBAAAAB
4 2 25 AAAABBBABBBAABABAABBBABAA
4 1 25 ABBBBBBBBBBBBBBBBABBBBBBB
7 5 25 AAABAAAAABAAAAAAAAAAAABAA
7 6 25 AAABABABABAAAABBBAAABBAAA
2 7 25 BBBBBBBBBBBBBBBBBBBBBABBB
5 3 25 AAAAAAABAABAAAAAABAAAAB...

Anna to Manager

0100101011001111101010000010000101110100010110100
0100010010100110111110000001000010110110000101010
0100101011001111101010000010000101110100010110100
1101000111011011101011001010111101111010101011001
0110101000100000101111111001101010101110000111011
0000011010110011001001011110000111000111111011111
...

Manager to Bruno

20000
25 0110010101110011001010001101010100100010000010111011000101010100
25 0100010101010010101111100001100100000011000010111011000001010101
25 0110010101110011010111101111010100000010001010111011000101110100
25 1110100011010110110101011000101000001000111110111100101010011001
25 0111010101001000000...

Bruno to Manager

BABAAAAAABBAAAAAAABBAAAAB
BABAAAAAABBAAAAAAABBAAAAB
BABAAAAAABBAAAAAAABBAAAAB
AAAABBBABBBAABABAABBBABAA
ABBBBBBBBBBBBBBBBABBBBBBB
AAABAAAAABAAAAAAAAAAAABAA
AAABABABABAAAABBBAAABBAAA
BBBBBBBBBBBBBBBBBBBBBABBB
AAAAAAABAABAAAAAABAAAABAA
ABBBBBBABBBBBBBBBBBBBBBBB
BABAAAAAABBAAAAAAABBAAAAB
AAAAAABAABABAA...

result:

points 1.0 Accepted: 43

Test #26:

score: 45
Acceptable Answer
time: 1746ms
memory: 4960kb

Manager to Anna

20000
3 5 26 ABAAAAAAAABBABAAAAAABABBBB
2 6 26 BBBAAABBABABABABBBAAAABAAA
0 4 26 ABBAAAABABABAAABABBBBABBBA
0 0 26 ABBAAAABABABAAABABBBBABBBA
6 4 26 ABBAAAABABABAAABABBBBABBBA
3 2 26 BABAABABAAAAAAAABAAABAAAAA
6 4 26 ABBAAAABABABAAABABBBBABBBA
3 6 26 BBAABBAAAAAAAAAABAAAAAAABA
0 1 26 AAAAAAAAABAAAAA...

Anna to Manager

0001010010010010101100011110011101100010011100101
1101100011000101111010010100101100111010010100100
0010111000011010001111010011000011001011000011001
0101111000011000001110100011000111010101000111001
1010010001011100001101000111101001100001100011001
1110111111010000000000100100011000001101011001000
...

Manager to Bruno

20000
26 0001011001001100101010100101000000111110011100110001010111001001
26 1101101001100001000011000111101100101010101100111101000101001010
26 1101011100101111000001101000111110100011000011100101110000111001
26 1000000010101111000001100000011100100011100011100101010000111001
26 1010101000101111000...

Bruno to Manager

ABAAAAAAAABBABAAAAAABABBBB
BBBAAABBABABABABBBAAAABAAA
ABBAAAABABABAAABABBBBABBBA
ABBAAAABABABAAABABBBBABBBA
ABBAAAABABABAAABABBBBABBBA
BABAABABAAAAAAAABAAABAAAAA
ABBAAAABABABAAABABBBBABBBA
BBAABBAAAAAAAAAABAAAAAAABA
AAAAAAAAABAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAA
AAA...

result:

points 0.450 Accepted: 25

Test #27:

score: 100
Accepted
time: 1828ms
memory: 5196kb

Manager to Anna

20000
4 4 27 BBBBBABABABAAAABABABAAAAABA
0 1 27 ABBBABBBAAAABABAAABAABBBAAB
1 4 27 BABBABBBBBBBBABBBBBBBABBBBB
2 3 27 AAABBBBABBBBBABBBBBBBAAAAAB
3 0 27 BBBBBBBBBABBBBBBBBBBBBBBBBB
5 1 27 AABBABABBBBABAABBBABABBBBAA
0 1 27 ABBBABBBAAAABABAAABAABBBAAB
0 0 27 BBBABBBBBAABBBABBBBBBABABAB
3 0 27 AAAAAAA...

Anna to Manager

0001010111101110100000001001001001100110010111010
1100011110000000011000001110001111001010100111011
1001101111001100011110010011110110011100100011101
0111000001000111011000011001001011011101101000011
0010111100111010011100011000001100000010111001110
1011000001010110010111010001111110010001000110001
...

Manager to Bruno

20000
27 0001101011111011101000000001000110100001001000110011100101110010
27 1000001110100011101000000100110001001110010111100010101001111011
27 1001110110101111111000110001111100100011110111001110101000111101
27 0111100000100001000000101100110000101001001101101110011010000011
27 1001011111001110010...

Bruno to Manager

BBBBBABABABAAAABABABAAAAABA
ABBBABBBAAAABABAAABAABBBAAB
BABBABBBBBBBBABBBBBBBABBBBB
AAABBBBABBBBBABBBBBBBAAAAAB
BBBBBBBBBABBBBBBBBBBBBBBBBB
AABBABABBBBABAABBBABABBBBAA
ABBBABBBAAAABABAAABAABBBAAB
BBBABBBBBAABBBABBBBBBABABAB
AAAAAAABAAAAAAAAAAAABBAAAAB
ABBBBBBABBABBBBBBBBBABBAABB
ABBBBABBBBBBBABBABBA...

result:

points 1.0 Accepted: 43

Test #28:

score: 100
Accepted
time: 1901ms
memory: 4968kb

Manager to Anna

20000
4 4 28 AAABBBBBBBABABBBABBAAAABBBAB
2 2 28 AAABBBBBBBABABBBABBAAAABBBAB
2 2 28 AAABBBBBBBABABBBABBAAAABBBAB
6 7 28 AABBBBBBBBABBBBBBBABBBBBABBB
5 2 28 AAAAAAAAAAAAAAABBBBBBAAAAAAA
1 7 28 ABBBAAABABAABABBBABBBBBBBBBB
5 7 28 AAAAAAAAAAAAAAAAAAAAAAAAAAAA
2 2 28 AAABBBBBBBABABBBABBAAAABBBAB
0 1 28...

Anna to Manager

1011001001111001110010101001001001110011000110101
1010001001111001100011111010000101110111000100101
1010001001111001100011111010000101110111000100101
0010111001101100100001100111111101110100111011000
0101111101100110001100111100010101101100100000000
1011101011011101100110100000011011101000110001010
...

Manager to Bruno

20000
28 1011100100111110011100010101000110100001001000111001110001100101
28 1011000100011110000011000111000111111010001010111001110001100101
28 1011000100111110010111100111000111011010001010111011110001100101
28 0010111100110110001000001100111011110110101001100010001010110000
28 0110111110111001100...

Bruno to Manager

AAABBBBBBBABABBBABBAAAABBBAB
AAABBBBBBBABABBBABBAAAABBBAB
AAABBBBBBBABABBBABBAAAABBBAB
AABBBBBBBBABBBBBBBABBBBBABBB
AAAAAAAAAAAAAAABBBBBBAAAAAAA
ABBBAAABABAABABBBABBBBBBBBBB
AAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAABBBBBBBABABBBABBAAAABBBAB
BBBBBBBBBBBBBBBBBBBABBBBBBBB
ABBBBAABAAABBBBBAAAABAAABBBA
AAABBBBBBB...

result:

points 1.0 Accepted: 43

Test #29:

score: 100
Accepted
time: 1991ms
memory: 5020kb

Manager to Anna

20000
0 7 29 ABBABAABAAAABABBBABAAABBBABBB
6 5 29 ABAAAAAAAAAAAAAAAAAAAAAAAAAAA
2 3 29 AAABAABAAAAAAAAAABAAABBABAABB
2 1 29 ABBABAABAAAABABBBABAAABBBABBB
7 3 29 BBBBBBABBBBBBBBBBBBBBBBBBBBBB
3 1 29 ABBBBBABABAABBBAAAAABBBAABABB
1 1 29 AABABABBBABBAAAAABBBABBBAAABA
6 0 29 BBAABBABAAAAAAAAABAAAABAAAAA...

Anna to Manager

0100011111101100011110110110101100100100100111010
0000100110110110101110111111011110111100110111111
1010110101001000100111001101101010010110011001100
0110011000011000111110101100111001001001010110100
1010000000110010100111010101000010010000101000001
0010001111010010001000001011100010001110100100101
...

Manager to Bruno

20000
29 1100101001000110111101100001111001101101101100100010010101110100
29 0000110011011001101010110111101101111001111000111100111001111111
29 1011011010110010010111100011001110001101101101001011100110011100
29 0111001100000110000000100001111100101100111100100010010100110100
29 1011000000011100101...

Bruno to Manager

ABBABAABAAAABABBBABAAABBBABBB
ABAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAABAABAAAAAAAAAABAAABBABAABB
ABBABAABAAAABABBBABAAABBBABBB
BBBBBBABBBBBBBBBBBBBBBBBBBBBB
ABBBBBABABAABBBAAAAABBBAABABB
AABABABBBABBAAAAABBBABBBAAABA
BBAABBABAAAAAAAAABAAAABAAAAAA
AAAABABBBBABBABABAAAAAAAABBBB
BABABBABBAABBBBBBBBBBAABBABBB
...

result:

points 1.0 Accepted: 43

Test #30:

score: 0
Stage 2: Program Bruno Time Limit Exceeded

Manager to Anna

20000
2 5 30 BBABBBBBAAAAAABABBBAABBBAAABBA
7 2 30 BBBBABAABBAAABAABBAAAABABBABAB
3 1 30 AABABBABBBBBAAAABABBABBBAAABBB
4 0 30 AAAAAAAAAAAAABAAABAAABAABAAAAA
5 7 30 BBBBABAABBAAABAABBAAAABABBABAB
5 7 30 BBBBABAABBAAABAABBAAAABABBABAB
2 7 30 BBAABABBABBABAAABAABBBBABBAAAA
2 2 30 ABBBBBABBBBBBBBBBBBBB...

Anna to Manager

0001111010111111101010111100001011001111101111110
1100100111101110000011111001001010011011100001001
0100001001000111011010101110101110001000001010110
0010100010001101100001001001010000001110000010111
1100010110110110100001111100000101000001001101011
1100010110110110100001111100000101000001001101011
...

Manager to Bruno

20000
30 0001111101011111001010001110100101111100001010100111111011111010
30 1110010011011011100000011101100100010100110011100010100110011101
30 0110000101010001101011011011110100101110110111000110000011010110
30 1001010000100011001100000100100100001000101000000011100000010111
30 1100010111011011101...

Bruno to Manager

BBABBBBBAAAAAABABBBAABBBAAABBA
BBBBABAABBAAABAABBAAAABABBABAB
AABABBABBBBBAAAABABBABBBAAABBB
AAAAAAAAAAAAABAAABAAABAABAAAAA
BBBBABAABBAAABAABBAAAABABBABAB
BBBBABAABBAAABAABBAAAABABBABAB
BBAABABBABBABAAABAABBBBABBAAAA
ABBBBBABBBBBBBBBBBBBBBBABAABBB
BBBBABAABBAAABAABBAAAABABBABAB
BBBBABAABBAAABAABBAAA...

result: