QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#691962#6341. The Last BattleL_Hospital_0 1961ms5232kbC++174.0kb2024-10-31 13:32:042024-10-31 13:32:16

Judging History

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

  • [2024-10-31 13:32:16]
  • 评测
  • 测评结果:0
  • 用时:1961ms
  • 内存:5232kb
  • [2024-10-31 13:32:04]
  • 提交

Anna

#include "Anna.h"
#include <string>
#include<bits/stdc++.h>
# define ll long long
# define rep(i, j, k) for (int i = j; i <= k; ++i)
using namespace std;



namespace {
ll ccr[8][8] =
{{8336472289217LL, 5639512599365LL, 1871250638342LL, 3390137130908LL, 2530027537138LL, 6552170723915LL, 3251759294492LL, 929957346565LL},
{25314763727LL, 2970367782506LL, 5527222402534LL, 6577898502454LL, 7127768016113LL, 3901949843252LL, 5636633740636LL, 6616692904317LL},
{7681352977774LL, 2375001204905LL, 4929867600779LL, 4862126206117LL, 8167356340727LL, 3035625863743LL, 6559553015134LL, 1935233326026LL},
{5707803600531LL, 6199538358365LL, 734043647614LL, 2266684804241LL, 5137174576748LL, 3594890660019LL, 500607681489LL, 687940303769LL},
{511884368862LL, 1438606257434LL, 7514839894893LL, 8340731692060LL, 1780971378244LL, 3093181020765LL, 4116667040631LL, 2716731664696LL},
{1248747142959LL, 6235375997772LL, 6957362059910LL, 2323727036899LL, 2396710924683LL, 5070921600379LL, 205564431433LL, 6467932111513LL},
{3371733935LL, 961720284132LL, 2176602768852LL, 2820141481226LL, 233272507539LL, 1660705470819LL, 5377457925919LL, 7456736482082LL},
{3908948650271LL, 8665163992602LL, 6067865243888LL, 2568877634971LL, 8603921027952LL, 2818931663736LL, 4006172116513LL, 3714897363758LL}};

}

void Anna(int X, int Y, int N, std::string S) {
    ll now = 0;
    for (int i = N - 1; i >= 0; --i) now = 2 * now + (S[i] == 'B');
    rep(i, 0, 7) rep(j, 0, 7) if (i != X && j != Y) Paint(i, j, (__builtin_popcountll(ccr[i][j] & now) + (ccr[(i + 4) % 8][(j + 4) % 8] & 1)) % 2 == 0 ? 0 : 1);
}

Bruno

#include "Bruno.h"
#include <vector>
#include <string>
#include<bits/stdc++.h>
# define ll long long
# define rep(i, j, k) for (int i = j; i <= k; ++i)
using namespace std;
namespace {

ll ccr[8][8] =
{{8336472289217LL, 5639512599365LL, 1871250638342LL, 3390137130908LL, 2530027537138LL, 6552170723915LL, 3251759294492LL, 929957346565LL},
{25314763727LL, 2970367782506LL, 5527222402534LL, 6577898502454LL, 7127768016113LL, 3901949843252LL, 5636633740636LL, 6616692904317LL},
{7681352977774LL, 2375001204905LL, 4929867600779LL, 4862126206117LL, 8167356340727LL, 3035625863743LL, 6559553015134LL, 1935233326026LL},
{5707803600531LL, 6199538358365LL, 734043647614LL, 2266684804241LL, 5137174576748LL, 3594890660019LL, 500607681489LL, 687940303769LL},
{511884368862LL, 1438606257434LL, 7514839894893LL, 8340731692060LL, 1780971378244LL, 3093181020765LL, 4116667040631LL, 2716731664696LL},
{1248747142959LL, 6235375997772LL, 6957362059910LL, 2323727036899LL, 2396710924683LL, 5070921600379LL, 205564431433LL, 6467932111513LL},
{3371733935LL, 961720284132LL, 2176602768852LL, 2820141481226LL, 233272507539LL, 1660705470819LL, 5377457925919LL, 7456736482082LL},
{3908948650271LL, 8665163992602LL, 6067865243888LL, 2568877634971LL, 8603921027952LL, 2818931663736LL, 4006172116513LL, 3714897363758LL}};

ll b[8][8];
ll kkr[44];
}

std::string Bruno(int N, std::vector<std::vector<int>> T) {
    rep(i, 0, 7) rep(j, 0, 7) b[i][j] = (T[i][j] ^ (ccr[(i + 4) % 8][(j + 4) % 8] & 1)), b[i][j] <<= 43, b[i][j] += ccr[i][j];

    rep(i, 0, 7) rep(j, 0, 7)
    {
        memset(kkr, 0, sizeof(kkr));
        bool ok = true;
        rep(k, 0, 7) if (ok) rep(l, 0, 7) if (ok) if (k != i && j != l)
        {
          //  cerr << k << ' ' << l << endl;
            ll now = b[k][l], pos = -1;
            for (int p = N - 1; p >= 0; --p) if (now & (1LL << p))
            {
                if (kkr[p]) now ^= kkr[p]; else if (pos == -1) pos = p;
            }
            if (pos == -1 && (now >> 43)) {ok = false; break;}
            if (pos == -1) continue;
        //    cerr << i << ' ' << j << ' ' << k << ' ' << l << ' ' << pos << endl;
            kkr[pos] = now;
            rep(p, pos + 1, N - 1) if (kkr[p] & (1LL << pos)) kkr[p] ^= kkr[pos];
        }
        if (ok)
        {
            string s = "";
            rep(i, 0, N - 1) s += ((kkr[i] >> 43) ? 'B' : 'A');
         //   cerr << s << endl;
            return s;
        }
    }
    return "A";
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 66ms
memory: 4424kb

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

0110001111010000101000101110100110011000110111110
0110010111100100110010101100100100011001110111101
1111001110100001010010011100101100010001110111101
0100010110100001010010011100101100010001110111101
0110010111100111100000010001010110010010001100111
0110010111100100110010101100100100011001110111101
...

Manager to Bruno

20000
1 0110001110010100111010000010100001011101100110001100011101111100
1 0111001011101001000011000011100101011100100110001100011101111101
1 1101011111111001101010000110100100011100110110001100011101111101
1 0110001000000001101010000010100100011100110110001000011100111101
1 011010101111100111100000...

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: 70ms
memory: 3880kb

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

0110000111110111101000101110100110011000110111111
1000101100000000111010101100101110010111010011110
0110000111110111101000010101010111010011001100011
1000101100000001011011011100101110111010110011111
1000101100000001011011011100101110111010110011111
1000011100000000110110101010101100010110110011110
...

Manager to Bruno

20000
2 0110001011111011111010000101000001011110100110001100011101111101
2 1000101110000000001110010101100010111000101110011100111000111110
2 0110001011111011111010000010101101011100100110101100011111010111
2 1000101110000000000000100101101010111000101110111101011000111110
2 100010111000000101001110...

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: 83ms
memory: 4376kb

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

0110010111110111101000010101100110011000110111101
0110010111110111101000010101010110010011000111101
1000111011000010101001111110011101000001111101111
0100111000010001000111000110001001001011001010110
0001001010011001110100100001111000000100111111110
0111101011111010110011100101100010001110100101101
...

Manager to Bruno

20000
3 0110011011111101111010000010100110100001100110001100011101111001
3 0110011011111001111010000010100101011000100110001100111001111101
3 1010011101110000100101001111111001011010001001111110101111101111
3 0100111100001000010001101000110000001000001001010101100010101100
3 000100110100111001110100...

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: 89ms
memory: 3976kb

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

1001101010001111011000010011010110101101000100100
0101100110011011100000110111111011111001100111101
0100110000010101000111001110001001001011001010110
0001001010011001111101110010011100000101011111100
0001001010011001110100100001011110000100011111100
1010011011100010010101111111011110101001001110111
...

Manager to Bruno

20000
4 1001110101010011110011000010001101011101011001000101010000001010
4 0101110011001010000011001110010001101111111011111100101001111101
4 0100111000001011010001011011110110011100001001100101101010101110
4 0001100101000110011101100000010011100010011110000010010111110100
4 000101010100111001110010...

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: 100ms
memory: 4372kb

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

1111010111010101001100010010100100110001101001010
1100010010100001010111000101101000100111101000011
1010011011100011111110111101000001101001001110111
1110100110101101011001001100000010010100011001100
1011101011011100000011010101000001001100110001011
1110100110101110011000100100001000100011000010110
...

Manager to Bruno

20000
5 1111011011101011010011000101000000100110100100011000111010010100
5 1110001000101000001010110100010101010001011001110001111011000011
5 1010011101110001010111101111111101111010000001110100100111101111
5 1111010011001011010011001000110000000100100100011000110001000100
5 101111010110111101001110...

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: 120ms
memory: 4420kb

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

0110101100001000110100000010011111100001100101001
0011100000111101010110010000100110111000110010101
0010001010111001101100100001110001000001011111100
1101000000101111100110001000111011000000110100111
0010001100111010000011100010111100001001011111100
1101110010010100000010110111111111010100101010100
...

Manager to Bruno

20000
6 0110101110000101001101000000010001111111000011001000010101010010
6 0011100100011110000011000101011100100001100110111100011000101011
6 0011000101101110010101100110000111000010111101010010010111111100
6 1101100000001011111000110000100011100110000100010000001101000111
6 100100011100111001001110...

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: 117ms
memory: 3908kb

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

1011101111010010001111000001110100000110001101110
1100010110100001010011011100001100010001111111101
1110001001101110000000101010011110000000010011001
0101101011110010111101100111110000110010001110110
1000111100000000111110101110101110010111111101010
0101111101111011000111100001111010010011001110110
...

Manager to Bruno

20000
7 1101110111110100001010000100011111000001011010001001100001101110
7 1110001000000110011010001010100111011100100110000100011111111101
7 1110001100110111100000000101011001111000000000110011001111010111
7 0101110101110100101101101100011111000001000100011001000011100110
7 100011111000010000111011...

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: 133ms
memory: 4108kb

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

0000011010110011001001011010110100110010100101111
1011010011110110101111000100011110010101110001000
0010000101110110100001001001010010100010101101101
0000011000110010001000010110110100111010100001111
0110100011101000011111101001001011100101011101000
0110010111100111100000101100100100011001110111101
...

Manager to Bruno

20000
8 0100001101101100101001001001101010100001101010011100101000101111
8 1101101000111101100101111000010000111100100101110100100010011101
8 1001000010101111010111011101000001001001101001011000101011101101
8 0010001100001100100001000000010000010110111010011100101000001111
8 011101000111101000001111...

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: 149ms
memory: 3884kb

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

1110000011011100111000110111100111000001001000011
1011000010111000110111100110111000100000101000001
0110000111110100101010101110100110011000110111111
0111101011001011001011100110101101000110100011100
0111111001001001010100110100001110100011101001001
1011000110010101100100011001011101011001011010101
...

Manager to Bruno

20000
9 1111000001110111000111000011011111001110010000100100010010000011
9 1011001000000110010111000011011111001110111000110000010010000011
9 0110001011111011010111100010101101011100100110101100011101111111
9 0111110101100010110010010000010011001010101101100011001000111000
9 101111111001001000101010...

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: 174ms
memory: 4112kb

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

1010001110010100111101001010011100011111011101011
1101011001100011110010100111110001100111000101000
0110110101100101110001111111011000100100101011111
0111011001000011100001110100011111010001000001001
1111110001001011100110000111101111010011101110111
1011101111001101100001101011000111110000101010100
...

Manager to Bruno

20000
10 1101000111100101000111100101000011001010001110001111110101101011
10 1000001111010011001100001111100101001111110010110011010001011000
10 1011011010101111010110011011100001111111101100011001001011011111
10 0111011100000001001000001110000011101000011111101000100000010001
10 1101001111111110001...

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: 180ms
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

1111100001100110001000000100111100101011110100010
1001010011100110100110010010111110011111001010100
1100111000101010111110111011011111110000011101000
1110111000101010111110111011010111111010000100110
1110011000010110111110111101010111111001000100011
0001101011000011111111001101100010000110110110100
...

Manager to Bruno

20000
11 1111110010011001010001000000010011111001001011111010001000001010
11 1100101000111001000011001101001101010010111111001011110011010100
11 1110011100101010100111110111101101011111101000011110100011010111
11 1111011100001010101011110110101101001111000100011100100001000110
11 1110011100001011101...

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: 192ms
memory: 3884kb

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

0011100010110110000101111111001010111110100110010
1010000001110011000001101111000010001000101000010
0111111110110010000110101101010011000111011101001
1011000101000001011000100111000010010111011001111
1010000001110011000001101111000010001000101000010
0110101001010110010010011101110001010111010101111
...

Manager to Bruno

20000
12 1100101000101100010011011000001011111111001001011111101001100010
12 1010000100111000110000000001100111011111000010010100010010000101
12 0111111110101111110110001000011101011001010011100011110111010101
12 1011000110100000010110000100111000001000000100011011101010011110
12 1010000100111001110...

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: 209ms
memory: 3880kb

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

1110110100110110011000011001001010110011111011101
1110100110101101110001010101111010100100110101111
1111000111011110111001101001011100100010110010111
1111000111011110111001101001011100100010110010111
0010110100010011100110100000001100001111100110000
1011110011110110011011000010111001001110010110010
...

Manager to Bruno

20000
13 1111011011001101100011000001100101010101100011111000010110011101
13 1111010001101011001110000101010100110011111101010001001110101111
13 1111010011101111101110001101010101111010011101010001011100101111
13 1111010011101011101110001101000100001000011101010001001100101011
13 0010111010100111100...

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: 224ms
memory: 3936kb

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

1100010111100111010000101001101110010001111111101
0110000111110111101000010101010111011000110111111
1110111011101100010100001011110010110000001100000
1010100011100011010100101110000011010101001011011
1010100011100011010100101110000011010101001011011
0010110011001100000011100000011010110110010010011
...

Manager to Bruno

20000
14 1110001011111001011010000010100111011100010000101100011101111101
14 0110001011111001111010000010100101011100011001111100010101111111
14 1110111101110111000101000001011101111010110010111000001011000010
14 1010110001110000110100100000010001011010000011101010100010110011
14 1010110001110100110...

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: 231ms
memory: 3908kb

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

0100101000000101111000000000001100100000000011001
1011111011011111010000100001101010111111100111011
0000101010011101111000011110111110010001110010111
1101011101111111011010000110010000101111010111000
0000010010000010100011010010110011100010101110010
0110010111100111100000010001100100011001110111101
...

Manager to Bruno

20000
15 1010010110000001001111000000000010011001000000001001100100001010
15 1011111101100111110100000100000110100101111101101100111001111011
15 0100010101100111001111000101111001111010111111001100011101010111
15 1101101110110111110101010000011000001000010010010111010101110000
15 0100001001100000100...

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: 279ms
memory: 4996kb

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

0000101010000110110010001111101001011011111010111
0110110100000011001001100101110110101111010110000
0010011111011011111111110100010111101100001110111
0010011101100010110001101001011101101010100101011
1010001011000000110001110001110100100011011110000
1111001111101010110110101010110110000100001000010
...

Manager to Bruno

20000
16 0000101101000011101100100001111010100101110111101000010110101110
16 0111011010000000110001001100010100110011110111010110110101110000
16 0010011111101110010111101111111111101000010111110110001011101111
16 0010101110110000000000101011000011010001011110110101001001010011
16 1010001110100111011...

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: 464ms
memory: 5084kb

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

1011011010011011000100001011110010101111100010000
0111011111110110111110111111001110011010110111001
1010011010111011000100010011110100101111101110000
0011010110000001100111000001011000111101000001101
0011101001100111000110010010001001101001010101011
1011001010011111000010001001011111100100001111000
...

Manager to Bruno

20000
17 1011011101001110110000100001001111001101011110100010010000001010
17 0111101111011101100111110101111100011100011001111100101101111001
17 1011001101101110110000100011001111001001011111101110101111110000
17 0011011011000000011001011000000100001000011000111110100000011001
17 0011110100111001110...

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: 555ms
memory: 4952kb

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

1100001010110000010011000011100001010110100001000
1011101110000110100001010111100010110101111011110
0001110101110111000011010000101011110101111011110
1010111110000100000011000010000001010011110011010
0011101001101001111111011000001100101101010101111
1001001101010011000110100010101101110100001101011
...

Manager to Bruno

20000
18 1100001110010100010110000001000110000111100001001011011000010000
18 1000001110011101101000011101000011010111110001011001011111011110
18 0100111011011101101000011101000010010111111101011101011111011110
18 1010111111000010000000101000010000001000000001011001111000110100
18 0011110100111010011...

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: 689ms
memory: 5072kb

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

1010110101010100011111010000111101010011001101100
0101110100111111110000101110011001100110010110001
1110110010001010010001110100110100000010110010100
0101110100111111110000101110011001100110010110001
1000001011001110000110100110011000011111001100110
0000100110100011000110101101001001111110011011000
...

Manager to Bruno

20000
19 1100101010101100101010010001110110100010111101001001101011011000
19 0110111010001111110110000100111001010011011001110001100101110001
19 1111011001100010100010001111010011001000111101010010101100110100
19 0110111010001111110110000100111001010011000100010001100101010001
19 1101001110001001011...

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: 876ms
memory: 5064kb

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

0101100000101010011010010100110001100001100000000
0001011100011110111111111101110001001001100100011
1100101101110111010011100110000101010000000101111
1110001100010000110101001001100101000001011000000
1101110010110000010101001101001010011000110000000
0110101000100101101111010100011100101111101011001
...

Manager to Bruno

20000
20 1100101001001100000010101000110100110100110000110010011000000000
20 0001011110001110000011001011111111111011110001010100110001000111
20 1100101110111011110100101100110100010100100000010101111111010111
20 1000000011110001100001000001101010001001101010100000010110000000
20 1110111001101100000...

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: 952ms
memory: 4940kb

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

0010111110000100100100001001010111101100011101100
0110010000000000101000010011001011011000011101101
0111010001011100000000001100010101101011101010001
0110010000011100000000010100011001101101101000001
0111100101011001000100110101110101110000010110011
1000100000101010011110001000111000110111011011001
...

Manager to Bruno

20000
21 0010111110010100110000010010001000011001010101110110100111010100
21 0111001000000110000000000101010001010011010101101010000111101101
21 0111101000101111000000000001110001010011010111101010100111010111
21 0111001000000111000000000001010001010011010101101000000101000100
21 0111100110101101010...

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: 1244ms
memory: 5232kb

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

0111010000110000010100111011000000110000100111010
1011010010110100101100111101111001011100000100111
0011111001010101011010001001111101101101011111011
1010111110001100011111111100101110101011101001111
1011111111001011011000010000000101110010000111110
1100010010101101001100110111011111111100011011001
...

Manager to Bruno

20000
22 1100101001101010000011000000101001111011000000011001001001101010
22 1011101001001101000101100101110111010010011001111101000001100111
22 1101011100111111001010010101110100010001111101110110110111110111
22 1010111111000011000101110000010011110100101111010101011010010111
22 1101111111110010010...

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: 1330ms
memory: 5048kb

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

1011001101110000101001111100100010100001111100010
1100001110100001110101101001000000110010101011101
1101101110100110101111100011111110100111110001011
1000010000111011010000110100110101110110010001001
1000001011000110000010100110011010011111101100010
0110011110110111011011010111111110100110110001011
...

Manager to Bruno

20000
23 1100101010110001101101000010010011111100100001010000111111000010
23 1100001111010000011101001101000100000001011001111001010010111011
23 1101011111011101110100011010111111000011111111010011111100011011
23 1000000011000010000011101010100000110100111010111001100100001001
23 1101001110000011011...

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: 1470ms
memory: 4940kb

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

1100001001101000101010110001000000101011100011110
1100001001110000100010010010011000101011000011100
1000001011010001010010100010110000100000011011100
0101111100000101011001100110101011011111100111001
1100000100100010100000111000000001011000010111011
0101010000010010000101001011001001111111111100001
...

Manager to Bruno

20000
24 1100001100110110001010010101000001100011000000010101111000111100
24 1100100100110100001000010010001001100001011001110101010000111100
24 1100000110110100001010011010001001100001100000011101110011010111
24 0101111110000010010110001100110010101100111111000010001001110010
24 1100010010100111100...

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: 1512ms
memory: 4944kb

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

0011101011001010001110101001010011111101101010000
0001110011100110001110100100010001111110111011000
0011101011001010001110101001010011111101101010000
0001100101110101001110001011011100101110100011000
1101010111000111000111100100010110010110101101011
0001011011011010110011001010001100011100110101000
...

Manager to Bruno

20000
25 0011110101110010001010001000011101101001010001111111011010010000
25 0001110101110010100011100001100101001001010001111111011010110001
25 0011110101110010010111101010011101001001011001111111011010110000
25 0010110010011101010001110000101100001000011110010101101000011000
25 1110101011110001101...

Bruno to Manager

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

result:

points 1.0 Accepted: 43

Test #26:

score: 100
Accepted
time: 1961ms
memory: 5004kb

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

1000100111001101011000111110111100110001001001101
1001011000001111111101111011001001101100000011100
0101010110011101110110010010000000101011110010110
1011010100111111110110100010000100110101110101110
0011000010101011001110111011001001000000010010110
1010100000100101011101100001110000101101011000100
...

Manager to Bruno

20000
26 1000110011100111010110000101000001111110111100011000110010011001
26 1001011100000101000011001111111011110111001001110110000000111010
26 1101011101011010110001110111101100100010000010010101111100101110
26 1000000011011010010011110111101100100010100010010101011100101110
26 0011100001011010110...

Bruno to Manager

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

result:

points 1.0 Accepted: 43

Test #27:

score: 46
Acceptable Answer
time: 1713ms
memory: 5008kb

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

1100010011101101111001001110000101100000110011000
0011001100001010100010001011000101000110010110111
1100110110001011110100110011011010101110001101110
0010011110011110011001100111001110110110101000000
0110001011110000111110010011011100101110110000111
1101101010110001010010000110010100011110011001010
...

Manager to Bruno

20000
27 1100101001111011011101001001011010100001000100110000101100110000
27 1000001100011001100000101101000101001011010010100001100101110111
27 1100111010101111110000101111101001100011011011010111100011011110
27 0011001111000111000000101000110011000111001111011010101010000000
27 1011000110111100000...

Bruno to Manager

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

result:

points 0.460 Accepted: 26

Test #28:

score: 0
Stage 2: Program Bruno Time Limit Exceeded

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

1101101111000100101100111111001010010111110100100
1110101110000101111111101111000110010101110100100
1110101110000101111111101111000110010101110100100
0100001110101101001100001000001111100010010011011
0110001011001010111000101110111001100000101000101
0111010101011110011001110111011111101011010010100
...

Manager to Bruno

20000
28 1101110111101001001001100111011110100001001001001011111101000100
28 1111010111000001000011000111111111101111001011001001011101100100
28 1111010111100001010111100111111111001111001011001011011101100100
28 0100001111010110010011000001000000111110000100100010001000110110
28 0111000101110010100...

Bruno to Manager

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

result: