QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#707943#8642. Spy 3hhoppitree0 56ms8896kbC++178.7kb2024-11-03 18:18:002024-11-03 18:18:02

Judging History

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

  • [2024-11-03 18:18:02]
  • 评测
  • 测评结果:0
  • 用时:56ms
  • 内存:8896kb
  • [2024-11-03 18:18:00]
  • 提交

Aoi

#include <bits/stdc++.h>
#include "Aoi.h"

using namespace std;

vector<int> operator * (vector<int> x, int y) {
    if (x.empty()) return {};
    vector<int> tres(x.size());
    for (int i = 0; i < (int)x.size(); ++i) {
        tres[i] += x[i] * y;
        if (i + 1 != (int)x.size()) {
            tres[i + 1] += tres[i] >> 10;
            tres[i] &= 1023;
        }
    }
    while (tres.back() >= 1024) {
        tres.push_back(tres.back() >> 10);
        tres[tres.size() - 2] &= 1023;
    }
    return tres;
}

vector<int> operator + (vector<int> x, int y) {
    if (!y) return x;
    if (x.empty()) {
        x = {0};
    }
    x[0] += y;
    int r = 0;
    while (r < (int)x.size() && x[r] >= 1024) {
        x[r] -= 1024;
        if (r == (int)x.size() - 1) x.push_back(0);
        ++x[r + 1];
    }
    return x;
}

string tr(vector<int> arr) {
    string res;
    for (int i = (int)arr.size() - 1; ~i; --i) {
        for (int j = 9; ~j; --j) {
            res += (char)(((arr[i] >> j) & 1) + '0');
        }
    }
    while (!res.empty() && res[0] == '0') {
        res = res.substr(1);
    }
    return res;
}

namespace Aoi {
    const int N = 1e4 + 5;

    vector< pair<int, long long> > G[N];
    long long dis[N];
    int pre[N];
    vector<int> T[N];
    int dep[N], clk[N];

    void dfs(int x) {
        for (auto v : T[x]) {
            dep[v] = dep[x] + 1, dfs(v), clk[x] = min(clk[x], clk[v]);
        }
    }
    
    int visit[N];

    void mark(int x) {
        while (x) {
            visit[x] = 1;
            x = pre[x];
        }
    }

    int getLst(int x) {
        while (x) {
            if (visit[x]) return x;
            x = pre[x];
        }
        return 0;
    }

    map< pair<int, int>, int> spe;

    int getId(int x) {
        while (x) {
            if (spe.count({x, pre[x]})) {
                return spe[{x, pre[x]}] + 1;
            }
            x = pre[x];
        }
        return 0;
    }

    string calc(vector< pair<int, int> > o) {
        vector<int> res;
        for (int i = (int)o.size() - 1; ~i; --i) {
            res = res * o[i].first + o[i].second;
        }
        return tr(res);
    }

    string aoi(int n, int m, int q, int k, vector<int> ox, vector<int> oy, vector<long long> oz, vector<int> qr, vector<int> o) {
        for (int i = 0; i < m; ++i) {
            G[ox[i]].push_back({oy[i], oz[i]});
            G[oy[i]].push_back({ox[i], oz[i]});
        }
        for (int i = 1; i < n; ++i) {
            dis[i] = 1e18;
        }
        priority_queue< pair<long long, int> > pq;
        pq.push({0, 0});
        while (!pq.empty()) {
            long long D = -pq.top().first;
            int x = pq.top().second;
            pq.pop();
            if (D != dis[x]) continue;
            for (auto [v, w] : G[x]) {
                long long nD = D + w;
                if (nD < dis[v] || (nD == dis[v] && x < pre[v])) {
                    if (nD != dis[v]) pq.push({-nD, v});
                    dis[v] = nD, pre[v] = x;
                }
            }
        }
        for (int i = 0; i < n; ++i) clk[i] = q;
        for (int i = 0; i < q; ++i) {
            clk[qr[i]] = min(clk[qr[i]], i);
        }
        for (int i = 1; i < n; ++i) {
            T[pre[i]].push_back(i);
        }
        dfs(0);
        vector< pair<int, int> > res;
        for (int i = 0; i < k; ++i) {
            if (dep[ox[o[i]]] > dep[oy[o[i]]]) swap(ox[o[i]], oy[o[i]]);
            res.push_back({q + 1, (pre[oy[o[i]]] == ox[o[i]] ? clk[oy[o[i]]] : q)});
            spe[{ox[o[i]], oy[o[i]]}] = spe[{oy[o[i]], ox[o[i]]}] = i;
        }
        mark(qr[0]);
        for (int i = 1; i < q; ++i) {
            res.push_back({k + 1, getId(getLst(qr[i]))});
            mark(qr[i]);
        }
        string ret = calc(res);
        assert((int)ret.size() <= 1350);
        return ret;
    }
}

string aoi(int n, int m, int q, int k, vector<int> ox, vector<int> oy, vector<long long> oz, vector<int> qr, vector<int> o) {
    return Aoi::aoi(n, m, q, k, ox, oy, oz, qr, o);
}

Bitaro

#include <bits/stdc++.h>
#include "Bitaro.h"

using namespace std;

vector<int> operator / (vector<int> x, int y) {
    vector<int> tres(x.size());
    int now = 0;
    for (int i = (int)x.size() - 1; ~i; --i) { 
        now = (now << 10) + x[i];
        tres[i] = now / y;
        now %= y;
    }
    while (!tres.empty() && !tres.back()) {
        tres.pop_back();
    }
    return tres;
}

int operator % (vector<int> x, int y) {
    vector<int> tres(x.size());
    int now = 0;
    for (int i = (int)x.size() - 1; ~i; --i) { 
        now = (now << 10) + x[i];
        tres[i] = now / y;
        now %= y;
    }
    return now;
}

vector<int> parse(string S) {
    while (S.size() % 10) S = "0" + S;
    vector<int> res(S.size() / 10);
    for (int i = 0; i < (int)S.size(); i += 10) {
        for (int j = 0; j < 10; ++j) {
            res[(int)S.size() / 10 - 1 - i / 10] += (S[i + j] - '0') << (9 - j);
        }
    }
    return res;
}

namespace Bitaro {
    const int N = 1e4 + 5;

    vector<int> apd[N];
    int pre[N], det[N], dep[N], usd[N];
    vector< tuple<int, int, long long> > E;
    long long dis[N];
    vector< pair<int, int> > ts;
    vector< pair<int, long long> > G[N];

    vector<int> process(int n, vector<int> imp, int id) {
        for (int i = 0; i < n; ++i) {
            G[i].clear();
            dis[i] = (i == 0 ? 0 : 1e18), pre[i] = 0;
        }
        for (auto [x, y, z] : E) {
            G[x].push_back({y, z});
            G[y].push_back({x, z});
        }
        for (auto x : imp) {
            G[ts[x].first].push_back({ts[x].second, 1});
            G[ts[x].second].push_back({ts[x].first, 1});
        }
        priority_queue< pair<long long, int> > pq;
        pq.push({0, 0});
        while (!pq.empty()) {
            long long D = -pq.top().first;
            int x = pq.top().second;
            pq.pop();
            if (D != dis[x]) continue;
            for (auto [v, w] : G[x]) {
                long long nD = D + w;
                if (nD < dis[v] || (nD == dis[v] && x < pre[v])) {
                    if (nD != dis[v]) pq.push({-nD, v});
                    dis[v] = nD, pre[v] = x;
                }
            }
        }
        vector<int> path = {id};
        int now = id;
        while (now) {
            path.push_back(pre[now]);
            now = pre[now];
        }
        reverse(path.begin(), path.end());
        for (int i = 1; i < (int)path.size(); ++i) {
            det[path[i]] = path[i - 1];
            dep[path[i]] = dep[path[i - 1]] + 1;
        }
        return path;
    }

    void bitaro(int n, int m, int q, int k, vector<int> ox, vector<int> oy, vector<long long> oz, vector<int> qr, vector<int> o, string S) {
        vector<int> val = parse(S);
        map< pair<int, int>, int> zM;
        for (int i = 0; i < k; ++i) {
            int cl = val % (q + 1);
            val = val / (q + 1);
            apd[cl].push_back(i);
            zM[{ox[o[i]], oy[o[i]]}] = zM[{oy[o[i]], ox[o[i]]}] = i;
        }
        map< pair<int, int>, int> M;
        for (int i = 0; i < m; ++i) {
            M[{ox[i], oy[i]}] = M[{oy[i], ox[i]}] = i;
        }
        for (int i = 0; i < k; ++i) {
            usd[o[i]] = 1;
            ts.push_back({ox[o[i]], oy[o[i]]});
        }
        for (int i = 0; i < m; ++i) {
            if (!usd[i]) E.push_back({ox[i], oy[i], oz[i]});
        }
        for (int i = 0; i < q; ++i) {
            vector<int> imp;
            if (i) {
                int id = val % (k + 1);
                val = val / (k + 1);
                if (id) {
                    --id;
                    if (dep[ox[o[id]]] < dep[oy[o[id]]]) {
                        swap(ox[o[id]], oy[o[id]]);
                    }
                    id = ox[o[id]];
                    while (id) {
                        if (usd[M[{id, det[id]}]]) {
                            imp.push_back(zM[{id, det[id]}]);
                        }
                        id = det[id];
                    }
                }
            }
            for (auto x : apd[i]) {
                imp.push_back(x);
            }
            vector<int> res = process(n, imp, qr[i]);
            vector<int> ids;
            for (int j = 0; j + 1 < (int)res.size(); ++j) {
                ids.push_back(M[{res[j], res[j + 1]}]);
            }
            answer(ids);
        }
    }
}

void bitaro(int n, int m, int q, int k, vector<int> ox, vector<int> oy, vector<long long> oz, vector<int> qr, vector<int> o, string S) {
    Bitaro::bitaro(n, m, q, k, ox, oy, oz, qr, o, S);
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 22ms
memory: 8764kb

Manager to Aoi

200 19900
13 70 985302938314
120 174 18964037101
18 153 170196070829
45 129 323777973024
62 198 689223413645
88 133 457404464825
19 57 803409835578
22 187 662331177910
18 31 529437059733
161 182 637731822589
109 131 32831735773
109 191 875742441191
43 78 135479410688
56 60 19000632823
44 143 6823771...

Aoi to Manager

A11010111100100001101010000011010100001011000001101000010000100101000010111110001101001010110100011110111110100000000010010111010000110101001011101001000110100100001001001100001100110110011110110100010100010101110101101000011111010001000100100110100101010111101101001111001011101111111000100100101110...

Manager to Bitaro

200 19900
13 70 985302938314
120 174 18964037101
18 153 170196070829
45 129 323777973024
62 198 689223413645
88 133 457404464825
19 57 803409835578
22 187 662331177910
18 31 529437059733
161 182 637731822589
109 131 32831735773
109 191 875742441191
43 78 135479410688
56 60 19000632823
44 143 6823771...

Bitaro to Manager

4
17135 3534 4830 14466
1
11921
2
17135 9906
4
17135 3534 18777 907
6
18033 13659 9145 14255 10379 11567
7
11921 7585 5782 2139 15549 19315 13987
2
17135 13815
5
17135 13815 8201 7265 15719
4
17135 3534 4830 9175
4
11921 7585 5782 8018
2
18033 13659
4
11921 7585 10922 14444
5
468 273 10532 11483 845...

Manager to Checker

1.00

result:

points 1.0

Test #2:

score: 100
Accepted
time: 1ms
memory: 4556kb

Manager to Aoi

6 7
0 5 839719370667
2 4 244076065937
1 5 337346113825
2 3 716558559511
1 4 837188452057
0 3 661778933008
1 3 678360389380
5
2 3 1 5 4
7
4 2 0 6 1 5 3

Aoi to Manager

A111111000110101101100111010001F

Manager to Bitaro

6 7
0 5 -1
2 4 -1
1 5 -1
2 3 -1
1 4 -1
0 3 -1
1 3 -1
5
2 3 1 5 4
7
4 2 0 6 1 5 3
A111111000110101101100111010001F

Bitaro to Manager

2
5 3
1
5
2
0 2
1
0
3
5 3 1
F

Manager to Checker

1.00

result:

points 1.0

Test #3:

score: 100
Accepted
time: 38ms
memory: 8896kb

Manager to Aoi

10000 19480
2933 9484 1000000000000
2567 9405 1000000000000
5263 6064 1000000000000
1453 8911 1000000000000
2445 8695 1000000000000
5686 7074 1000000000000
5031 5441 1000000000000
253 5144 1000000000000
8087 8704 1000000000000
263 3499 1000000000000
5200 8741 1000000000000
5764 8908 1000000000000
20...

Aoi to Manager

A11100111101111010010100000101011100000010010110110001001110011110110000110111110011101110110000100011011011001011010101101001010110010000011100000100011011100100000111110011011101101011011000010111101100110100100110101111110000001000111010010101010010010001100000101011100101001100000101000011110011...

Manager to Bitaro

10000 19480
2933 9484 1000000000000
2567 9405 1000000000000
5263 6064 1000000000000
1453 8911 1000000000000
2445 8695 1000000000000
5686 7074 1000000000000
5031 5441 1000000000000
253 5144 1000000000000
8087 8704 1000000000000
263 3499 1000000000000
5200 8741 1000000000000
5764 8908 1000000000000
20...

Bitaro to Manager

97
1260 13136 16199 11872 6454 19283 13489 12265 5995 10777 3525 17119 3092 2048 14179 13387 5938 6450 10764 1790 4230 17548 6275 4451 8801 8824 16269 18740 9533 17825 19041 7395 8536 4947 14436 15131 11691 15813 16617 13143 11169 10217 599 558 8399 7602 9809 12118 13004 2264 2267 12996 6620 12600 1...

Manager to Checker

1.00

result:

points 1.0

Test #4:

score: 100
Accepted
time: 56ms
memory: 8456kb

Manager to Aoi

10000 14998
4204 9454 2
1333 6756 8
5422 6909 4
8513 9188 5
3573 9262 7
4725 9276 7
6854 8959 5
2090 4396 7
290 9872 3
3446 9893 1
8535 9507 2
4717 8629 10
513 7572 1
4831 9533 6
4729 8955 8
7695 8432 5
1437 3326 3
616 7394 8
2406 9126 6
2704 4165 5
1714 8188 3
5669 9598 2
107 1426 6
42 782 3
4293 7...

Aoi to Manager

A11011111110111110000000110100010010010101101011110110101101010111101110110000110000100100000110010111011010111100011010000110011011000101100110110100011111110110100110101100101011111001110011111100010101111100100000010010010110011010101110111100111101110101100001010101000010000000010001001111000010...

Manager to Bitaro

10000 14998
4204 9454 2
1333 6756 8
5422 6909 4
8513 9188 5
3573 9262 7
4725 9276 7
6854 8959 5
2090 4396 7
290 9872 3
3446 9893 1
8535 9507 2
4717 8629 10
513 7572 1
4831 9533 6
4729 8955 8
7695 8432 5
1437 3326 3
616 7394 8
2406 9126 6
2704 4165 5
1714 8188 3
5669 9598 2
107 1426 6
42 782 3
4293 7...

Bitaro to Manager

4528
6715 5358 4070 389 13901 1829 11282 1680 2812 7536 14128 1703 1848 13138 7160 9658 8294 9766 3195 5388 12850 577 1204 1884 7498 12023 10110 7163 7715 11209 3766 10303 2977 3630 12484 8732 6744 10737 6201 1182 12487 11865 1270 9647 1632 3062 5880 10569 3879 6090 9336 12781 2009 1373 10372 7503 4...

Manager to Checker

1.00

result:

points 1.0

Test #5:

score: 100
Accepted
time: 34ms
memory: 8880kb

Manager to Aoi

10000 19800
314 731 10
5299 8954 4
3816 7739 9
699 9283 9
1882 6374 1
6078 7022 8
5076 9179 6
2945 4960 8
3439 9043 4
1328 8229 3
8190 9426 5
2650 7973 9
2582 3109 10
1892 2519 7
5345 9408 7
516 5467 1
1939 2178 6
6163 9562 10
6413 8834 2
6550 9137 2
831 6431 10
7068 9071 4
2727 9695 3
1642 4134 10
...

Aoi to Manager

A10010111000010111111111011110110011000110010111110010111010010000111010110010000011110010111001010101000100000110101111000000110000001011100011100110100101110000100000100100101010001010010100011001111011011001111100110101010111010001010000101000101110000101010110110000011101110101110110001010011111...

Manager to Bitaro

10000 19800
314 731 10
5299 8954 4
3816 7739 9
699 9283 9
1882 6374 1
6078 7022 8
5076 9179 6
2945 4960 8
3439 9043 4
1328 8229 3
8190 9426 5
2650 7973 9
2582 3109 10
1892 2519 7
5345 9408 7
516 5467 1
1939 2178 6
6163 9562 10
6413 8834 2
6550 9137 2
831 6431 10
7068 9071 4
2727 9695 3
1642 4134 10
...

Bitaro to Manager

99
9761 2561 19261 6944 18105 19742 16682 3606 12492 1853 19755 395 12667 8141 704 4026 15294 5810 475 3253 11895 7302 15665 8689 8814 16098 7050 8847 3263 14315 13554 5177 17684 11318 6508 9674 13715 2693 815 12924 13135 6414 19571 6428 17632 10942 1685 10205 7294 10030 9170 9777 9042 4814 5305 189...

Manager to Checker

1.00

result:

points 1.0

Test #6:

score: 100
Accepted
time: 46ms
memory: 8588kb

Manager to Aoi

10000 18990
1222 6595 2
1793 6566 1
5929 8876 2
2824 4108 1
5250 6286 6
1361 6510 9
5320 6361 3
2636 3172 8
1466 1507 7
5777 7740 3
3845 7707 8
2762 9691 4
6188 8529 8
4689 6371 6
3153 4900 6
6775 8446 10
5044 9395 1
2148 6345 10
3626 8982 7
5092 9075 5
814 3942 4
2476 4867 5
1566 9514 10
1586 1924 ...

Aoi to Manager

A11010010101001001001110000111011111001111011110010010001100000000110001100100011110111000101000000110110000011100111110010000110011100010001011100010100100011100001101111110100101011110000100011100011111000101101110100010110010000111101010100010101100010111110000111001111100110000110110101110011100...

Manager to Bitaro

10000 18990
1222 6595 2
1793 6566 1
5929 8876 2
2824 4108 1
5250 6286 6
1361 6510 9
5320 6361 3
2636 3172 8
1466 1507 7
5777 7740 3
3845 7707 8
2762 9691 4
6188 8529 8
4689 6371 6
3153 4900 6
6775 8446 10
5044 9395 1
2148 6345 10
3626 8982 7
5092 9075 5
814 3942 4
2476 4867 5
1566 9514 10
1586 1924 ...

Bitaro to Manager

768
4329 6124 1559 1450 803 13507 16941 8073 10753 2604 5985 6828 3936 2960 13856 16505 7100 5872 16039 14523 13105 8996 18161 13768 11537 85 12347 3290 592 10669 13032 10439 3600 3310 11371 16452 1222 11609 1863 2020 2602 15019 3410 3818 11986 9955 6018 16340 4743 10875 5601 18731 13891 8859 2969 1...

Manager to Checker

1.00

result:

points 1.0

Test #7:

score: 100
Accepted
time: 36ms
memory: 8700kb

Manager to Aoi

10000 19800
4973 9017 744216245256
2815 2986 744216245256
5906 7380 744216245256
1150 3616 744216245256
721 3879 744216245256
725 9926 744216245256
3443 8409 744216245256
156 8497 744216245256
2517 7006 744216245256
8992 9068 744216245256
977 2296 744216245256
5967 9998 744216245256
7940 8426 744216...

Aoi to Manager

A11001010011100111011111000010001100001010110101100101010101100101010100110101101001000000101011100101101010110100011011000100111001110001101001000011000100001001000110011001101010101001010111011111100110100110101111110001111100001111001100110110110000001110110011000001011110110111010101111011010111...

Manager to Bitaro

10000 19800
4973 9017 744216245256
2815 2986 744216245256
5906 7380 744216245256
1150 3616 744216245256
721 3879 744216245256
725 9926 744216245256
3443 8409 744216245256
156 8497 744216245256
2517 7006 744216245256
8992 9068 744216245256
977 2296 744216245256
5967 9998 744216245256
7940 8426 744216...

Bitaro to Manager

191
6301 3573 5976 7616 19571 10429 12464 16792 6195 18511 6615 13361 18730 12460 9043 953 559 5957 2548 4392 13193 12218 6823 3060 1258 14618 16533 3457 8198 14339 6248 16065 13116 9292 7304 19000 18074 17003 4170 4663 17128 10577 2779 16830 1187 14414 463 13122 9295 11237 6330 10349 11272 10441 16...

Manager to Checker

1.00

result:

points 1.0

Test #8:

score: 100
Accepted
time: 31ms
memory: 8596kb

Manager to Aoi

10000 18990
1622 6352 820417700969
3874 4023 820417700969
4352 6514 820417700969
1224 6163 820417700969
2021 8484 820417700969
6391 7837 820417700969
3960 6352 820417700969
3742 4058 820417700969
2693 5253 820417700969
6677 9751 820417700969
363 4101 820417700969
6262 7192 820417700969
902 9347 8204...

Aoi to Manager

A11010110001111111101101001011011101110110111010111101111101011010101001110110000011101101111001110010010000100110101110001101001101000110010011000101110011111001110001001101100011101000000010000000110101011001110011010001101111101000111111010010001011001001100111111001000000011000110000010011010000...

Manager to Bitaro

10000 18990
1622 6352 820417700969
3874 4023 820417700969
4352 6514 820417700969
1224 6163 820417700969
2021 8484 820417700969
6391 7837 820417700969
3960 6352 820417700969
3742 4058 820417700969
2693 5253 820417700969
6677 9751 820417700969
363 4101 820417700969
6262 7192 820417700969
902 9347 8204...

Bitaro to Manager

895
16036 18852 15114 15098 3378 277 5325 4819 3874 11164 5370 13533 3159 2026 5086 2248 8464 12394 3444 796 7044 15077 13003 4042 12579 4345 14301 6640 142 848 11701 15431 4528 18293 7399 14081 18857 14371 3643 581 15048 7114 9641 3094 6329 7862 16961 1263 18226 1279 6088 6299 18482 15030 6524 1162...

Manager to Checker

1.00

result:

points 1.0

Test #9:

score: 100
Accepted
time: 48ms
memory: 8216kb

Manager to Aoi

10000 14998
7181 8150 337018073036
5588 9328 337018073036
6216 9493 337018073036
3491 6317 337018073036
3554 7886 337018073036
6458 7580 337018073036
6731 9117 337018073036
1549 6762 337018073036
1667 9259 337018073036
4233 5288 337018073036
47 1142 337018073036
2957 7230 337018073036
3555 7538 3370...

Aoi to Manager

A10111110110110001111010100111100110110000000011001001100101000110010100101011010010111110011110101010111111010111000110111001011101010111110110011111010010000111001001011001110011011111100010001111010001100100100000110101111000011000001101000010110010001000000100001010000110100101100111000010110110...

Manager to Bitaro

10000 14998
7181 8150 337018073036
5588 9328 337018073036
6216 9493 337018073036
3491 6317 337018073036
3554 7886 337018073036
6458 7580 337018073036
6731 9117 337018073036
1549 6762 337018073036
1667 9259 337018073036
4233 5288 337018073036
47 1142 337018073036
2957 7230 337018073036
3555 7538 3370...

Bitaro to Manager

3561
5418 2513 2698 12606 1206 13508 12370 3597 672 6023 12660 10377 9507 12575 9875 12140 9508 1434 764 13401 4134 13669 11236 351 5043 3731 12250 2670 3759 5407 9496 7610 4840 10668 13330 11094 2514 3120 11099 2870 1047 2109 8002 4441 12459 9331 4192 12388 3200 8207 3887 1667 9094 13950 12031 1339...

Manager to Checker

1.00

result:

points 1.0

Test #10:

score: 100
Accepted
time: 24ms
memory: 8556kb

Manager to Aoi

10000 17496
319 6057 231276494450
194 836 231276494450
91 3525 231276494450
4996 5932 231276494450
4390 8231 231276494450
451 3597 231276494450
1772 7167 231276494450
3309 9098 231276494450
4184 9460 231276494450
6095 6892 231276494450
3134 7826 231276494450
4363 5771 231276494450
9713 9971 23127649...

Aoi to Manager

A11010111000000001011011100010010010011010101001001011110001011010011100010111100000111110111010010110111000011000011101010110001000011110000111000001110010101000111011001000100010011110010110100010001101101110100110111100100001001001100001000100101011010000011000011110100100111100001111100000110000...

Manager to Bitaro

10000 17496
319 6057 231276494450
194 836 231276494450
91 3525 231276494450
4996 5932 231276494450
4390 8231 231276494450
451 3597 231276494450
1772 7167 231276494450
3309 9098 231276494450
4184 9460 231276494450
6095 6892 231276494450
3134 7826 231276494450
4363 5771 231276494450
9713 9971 23127649...

Bitaro to Manager

93
15711 2502 10059 17015 3261 5965 7667 1673 10160 213 5143 6443 851 5278 15256 7820 14677 3746 5557 3808 15427 13372 7727 1648 8662 10384 12105 553 4961 9325 572 17116 4510 5933 3495 5348 16363 9025 682 17356 15012 11567 12315 2080 2613 13603 11748 16681 4698 10174 889 14572 2821 5275 14404 1657 7...

Manager to Checker

1.00

result:

points 1.0

Test #11:

score: 100
Accepted
time: 38ms
memory: 8736kb

Manager to Aoi

10000 19800
4304 4462 882897222787
5382 7500 882897222787
962 6651 882897222787
803 5902 882897222787
1695 6018 882897222787
2985 3367 882897222787
3423 8424 882897222787
7666 9680 882897222787
3853 6722 882897222787
5669 6023 882897222787
1823 7904 882897222787
2295 3789 882897222787
6869 7999 8828...

Aoi to Manager

A10010100000101100000100100001110000011111011101110001011101101110111110110100011000111011101010010111111010100000100111011110100011001110100101000101001000111101100110001101000000110110101000011111001111001010101110110001010110010000110010010100011001011010010001110011001110011001001001100111010000...

Manager to Bitaro

10000 19800
4304 4462 882897222787
5382 7500 882897222787
962 6651 882897222787
803 5902 882897222787
1695 6018 882897222787
2985 3367 882897222787
3423 8424 882897222787
7666 9680 882897222787
3853 6722 882897222787
5669 6023 882897222787
1823 7904 882897222787
2295 3789 882897222787
6869 7999 8828...

Bitaro to Manager

132
9278 17331 19021 7308 19413 9778 841 19690 14418 12441 9177 9458 16865 13305 15627 9750 3982 10986 7711 17676 16652 16580 4619 6882 7185 561 17640 15841 19669 11193 13317 2648 9336 2009 9363 8893 10955 4042 384 10164 5117 1867 15553 7828 17429 10004 10918 13785 583 13623 16956 7607 7912 16826 17...

Manager to Checker

1.00

result:

points 1.0

Test #12:

score: 100
Accepted
time: 46ms
memory: 8564kb

Manager to Aoi

10000 18990
169 884 680406503656
4434 9849 787022834064
1087 4432 681820113090
2532 7125 977323714358
3364 7989 385846050261
3993 5183 353586963631
1616 6104 628368624184
9193 9938 651704251116
3101 5666 957884906802
6002 6310 848394037924
1377 2374 682675277252
883 1204 126103508080
9297 9653 69965...

Aoi to Manager

A11101010110110000110001000110010100000110100101001001111111001110001001111010110011011100001001100111101101110001111010111110001110000001001111010110001100100100000101001111101000111100111000101011110101101110100110111110000000110111010000100010111001010100110110001011100100010110001100011001001000...

Manager to Bitaro

10000 18990
169 884 680406503656
4434 9849 787022834064
1087 4432 681820113090
2532 7125 977323714358
3364 7989 385846050261
3993 5183 353586963631
1616 6104 628368624184
9193 9938 651704251116
3101 5666 957884906802
6002 6310 848394037924
1377 2374 682675277252
883 1204 126103508080
9297 9653 69965...

Bitaro to Manager

785
14721 16369 18789 9397 18720 9195 1463 16074 16941 1098 11378 15942 9308 6063 5397 8102 6879 16587 11680 3512 5164 15588 10292 6762 11085 12801 13316 305 9319 4569 15629 13662 9531 1804 11029 16742 13617 8454 14246 11467 16921 12461 12135 2191 10232 18317 8281 14352 8950 4359 8271 1460 8615 1457...

Manager to Checker

1.00

result:

points 1.0

Test #13:

score: 100
Accepted
time: 39ms
memory: 8828kb

Manager to Aoi

10000 19710
3863 4836 894949714237
908 6197 665026928145
5035 6367 179339586881
3378 5121 822846218903
4670 6907 833524321196
6213 8907 516235677144
8635 9143 228260767571
3288 6283 99135975001
2607 4981 534342624058
2235 5570 617747540071
6832 8684 460966285565
1530 8473 964322006495
2809 8578 7681...

Aoi to Manager

A10110100011110000110001010001000110001110011101010000100001101001001001100101110100110000101011111001111100100010110010101101001111000001111110100011000010000001101011011001101110000101101010000000100100011000001011101000100010101010110101000001110110010101001111001001100110011010110100001111110101...

Manager to Bitaro

10000 19710
3863 4836 894949714237
908 6197 665026928145
5035 6367 179339586881
3378 5121 822846218903
4670 6907 833524321196
6213 8907 516235677144
8635 9143 228260767571
3288 6283 99135975001
2607 4981 534342624058
2235 5570 617747540071
6832 8684 460966285565
1530 8473 964322006495
2809 8578 7681...

Bitaro to Manager

99
9325 18189 1968 8887 8856 7236 11060 9928 15660 841 12983 782 1013 14593 9073 14398 12524 2401 8537 13369 5034 19528 1109 19383 5020 4928 15166 13171 18207 1332 18331 19625 17737 1446 3421 19594 6841 12077 17798 5824 4112 6021 15246 15923 1571 11647 11702 4729 6995 7224 11747 6775 7311 19448 8748...

Manager to Checker

1.00

result:

points 1.0

Test #14:

score: 100
Accepted
time: 37ms
memory: 8704kb

Manager to Aoi

10000 19710
2860 5401 587563053582
8164 8374 587563053582
5920 6442 587563053582
3186 9426 587563053582
2814 6142 587563053582
4382 5196 587563053582
7069 8544 587563053582
3177 4098 587563053582
2200 6765 587563053582
4377 8868 587563053582
2828 6311 587563053582
1178 3731 587563053582
2555 4463 58...

Aoi to Manager

A11000101111011010000000111010110010100110000011111101000110011111000111101100010010100010100001111000001010011100111001100000100101101101111010100101111100011001000010100010000111000011001011100010100011011011010110001011110111010100011100011110010101110001100101011000011110011010011001010000110101...

Manager to Bitaro

10000 19710
2860 5401 587563053582
8164 8374 587563053582
5920 6442 587563053582
3186 9426 587563053582
2814 6142 587563053582
4382 5196 587563053582
7069 8544 587563053582
3177 4098 587563053582
2200 6765 587563053582
4377 8868 587563053582
2828 6311 587563053582
1178 3731 587563053582
2555 4463 58...

Bitaro to Manager

266
5072 17225 5552 9904 8765 5994 152 13828 6865 3974 2964 10154 13710 14196 3461 16677 2471 16394 8534 889 3006 273 11673 15050 15578 13382 3956 26 18383 14924 17390 16022 19084 11285 14586 17858 4326 15792 15048 5796 3693 8550 1312 11947 5582 591 3405 14273 5221 5080 4502 10815 3025 10384 19066 1...

Manager to Checker

1.00

result:

points 1.0

Test #15:

score: 0
Wrong Answer
time: 48ms
memory: 8324kb

Manager to Aoi

9999 16662
2737 7171 2700243266
1152 6007 189991769096
3148 7862 472459378081
5845 6507 902360913112
2799 3666 736958788368
3313 4948 133031854765
3742 6465 978073728204
5073 6829 354312499443
6979 7478 306747484673
182 3798 671234943761
1292 7846 791602968115
3271 4546 40588315774
300 4699 32137709...

Aoi to Manager

A100111111000010001110110001000011001010010000010100110110010011010001000101011001010010010101100000000001001101000111110111101111100001010110010011001101000011010010111001111001001000000011111101011011001011100100100110011010101110100101111101011010100000000100001010111111010010F

Manager to Bitaro

9999 16662
2737 7171 2700243266
1152 6007 189991769096
3148 7862 472459378081
5845 6507 902360913112
2799 3666 736958788368
3313 4948 133031854765
3742 6465 978073728204
5073 6829 354312499443
6979 7478 306747484673
182 3798 671234943761
1292 7846 791602968115
3271 4546 40588315774
300 4699 32137709...

Bitaro to Manager

3536
9742 527 11781 10105 5657 10566 10167 4284 210 3307 12876 2309 16501 12478 4371 3072 13415 10708 7659 14816 16413 1018 10435 717 8010 7411 1066 8278 12398 5017 11023 10884 4032 13683 8387 8041 14422 16165 11421 15506 6812 10007 7923 16263 10237 10531 5551 6569 7798 9989 14182 5924 3907 12325 26...

Manager to Checker

0.00

result:

points 0.0