QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#134237#1135. Connecting Supertreesbashkort#100 ✓113ms23184kbC++202.6kb2023-08-03 15:04:172024-07-04 01:12:14

Judging History

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

  • [2024-07-04 01:12:14]
  • 评测
  • 测评结果:100
  • 用时:113ms
  • 内存:23184kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-03 15:04:17]
  • 提交

answer

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

using namespace std;

int construct(std::vector<std::vector<int>> p) {
	int n = p.size();

    for (int i = 0; i < n; ++i) {
        for (int j = 0; j < n; ++j) {
            if (p[i][j] == 3) {
                return 0;
            }
        }
    }

	vector ans(n, vector<int>(n));

    auto addEdge = [&](int x, int y) {
        ans[x][y] = ans[y][x] = true;
    };

    vector<bool> used(n);
    vector<int> treeNum(n, -1), cycleNum(n, -1);
    vector<vector<int>> subtree(n);
    int top = 0;
    vector<int> cyc;

    // generate trees
    for (int i = 0; i < n; ++i) {
        if (!used[i]) {
            vector<int> tree;
            for (int to = i; to < n; ++to) {
                if (!used[to] && p[i][to] == 1) {
                    used[to] = true;
                    tree.push_back(to);
                }
            }
            for (int x : tree) {
                treeNum[x] = top;
            }
            subtree[i] = tree;
            top += 1;
            cyc.push_back(i);
            for (int j = 0; j + 1 < size(tree); ++j) {
                addEdge(tree[j], tree[j + 1]);
            }
        }
    }

    top = 0;
    // generate cycles
    fill(used.begin(), used.end(), false);
    for (int i = 0; i < size(cyc); ++i) {
        if (!used[i]) {
            vector<int> now{cyc[i]};
            used[i] = true;
            for (int j = i + 1; j < size(cyc); ++j) {
                if (!used[j] && p[cyc[i]][cyc[j]] == 2) {
                    used[j] = true;
                    now.push_back(cyc[j]);
                }
            }
            for (int x : now) {
                for (int t : subtree[x]) {
                    cycleNum[t] = top;
                }
            }
            if (size(now) == 2) {
                return 0;
            }
            if (size(now) > 1) {
                for (int j = 0; j < size(now); ++j) {
                    addEdge(now[j], now[(j + 1) % size(now)]);
                }
            }
            top += 1;
        }
    }

    for (int i = 0; i < n; ++i) {
        for (int j = i; j < n; ++j) {
            if (p[i][j] && cycleNum[i] != cycleNum[j] || !p[i][j] && cycleNum[i] == cycleNum[j]) {
                return 0;
            }
            if (cycleNum[i] == cycleNum[j]) {
                if (treeNum[i] == treeNum[j] && p[i][j] == 2 || treeNum[i] != treeNum[j] && p[i][j] == 1) {
                    return 0;
                }
            }
        }
    }

    build(ans);
    return 1;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 0ms
memory: 4088kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1
1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0

result:

ok 

Test #2:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 1
1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1
1 0

result:

ok 

Test #3:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 1 1
1 1 1
1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0
1 0 1
0 1 0

result:

ok 

Test #4:

score: 0
Accepted
time: 1ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0
1 0 1 0 0
0 1 0 1 0
0 0 1 0 1
0 0 0 1 0

result:

ok 

Test #5:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0
0 0 0 1 0 1 0 0 0 0
0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 1 0 1 0 0
0 0 0 0 0 0 1 0 1 0
0 0 0 0 0 0 0 1 0 1
0 0 0 0 0 0 0 0 1 0

result:

ok 

Test #6:

score: 0
Accepted
time: 4ms
memory: 4436kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #7:

score: 0
Accepted
time: 95ms
memory: 22908kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Subtask #2:

score: 10
Accepted

Dependency #1:

100%
Accepted

Test #8:

score: 10
Accepted
time: 0ms
memory: 3804kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 0
0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0
0 0

result:

ok 

Test #9:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 0 0
0 1 0
0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0
0 0 0
0 0 0

result:

ok 

Test #10:

score: 0
Accepted
time: 0ms
memory: 4108kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

result:

ok 

Test #11:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0

result:

ok 

Test #12:

score: 0
Accepted
time: 4ms
memory: 4472kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #13:

score: 0
Accepted
time: 96ms
memory: 22984kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #14:

score: 0
Accepted
time: 0ms
memory: 4096kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 1 1 0
0 1 1 1 1
0 1 1 1 0
0 0 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #15:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 1 0 1 0 0 0 0
0 1 0 1 0 1 0 0 0 1
0 0 1 1 0 0 0 0 1 0
1 1 1 1 1 0 1 0 1 0
0 0 0 1 1 1 0 0 1 1
1 1 0 0 1 1 1 1 1 0
0 0 0 1 0 1 1 1 0 0
0 0 0 0 0 1 1 1 1 1
0 0 1 1 1 1 0 1 1 0
0 1 0 0 1 0 0 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #16:

score: 0
Accepted
time: 2ms
memory: 4580kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 1 1 1 0 1 1 1 0 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 0 1 0 0 1 1 0 1 1 1 1 0 0 1 0 0 1 1 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 0 1 1 0 0 1 1 0 1 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #17:

score: 0
Accepted
time: 42ms
memory: 15956kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 1 0 1 1 1 1 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 1 1 0 1 0 0 1 0 1 1 0 1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 1 1 1 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #18:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 1 0
1 1 1
0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #19:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
4
1 1 1 1
1 1 1 1
1 1 1 0
1 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #20:

score: 0
Accepted
time: 25ms
memory: 8124kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #21:

score: 0
Accepted
time: 96ms
memory: 23184kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 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 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #23:

score: 0
Accepted
time: 103ms
memory: 23108kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 0 1 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #24:

score: 0
Accepted
time: 94ms
memory: 22940kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #25:

score: 0
Accepted
time: 38ms
memory: 15608kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #26:

score: 0
Accepted
time: 41ms
memory: 15620kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #27:

score: 0
Accepted
time: 98ms
memory: 23116kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 1 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 1 0 1 0 1 1 0 0 0 0 0 0 1 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 1 1 0 0 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #28:

score: 0
Accepted
time: 90ms
memory: 22988kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Subtask #3:

score: 19
Accepted

Test #29:

score: 19
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 0
0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0
0 0

result:

ok 

Test #30:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 0 0
0 1 0
0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0
0 0 0
0 0 0

result:

ok 

Test #31:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1
1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0

result:

ok 

Test #32:

score: 0
Accepted
time: 0ms
memory: 4056kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 2
2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #33:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 2 2
2 1 2
2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1
1 0 1
1 1 0

result:

ok 

Test #34:

score: 0
Accepted
time: 0ms
memory: 3748kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

result:

ok 

Test #35:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0

result:

ok 

Test #36:

score: 0
Accepted
time: 5ms
memory: 4408kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #37:

score: 0
Accepted
time: 84ms
memory: 22956kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #38:

score: 0
Accepted
time: 0ms
memory: 3740kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 2
2 1 2 2 2
2 2 1 2 2
2 2 2 1 2
2 2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 1
1 0 1 0 0
0 1 0 1 0
0 0 1 0 1
1 0 0 1 0

result:

ok 

Test #39:

score: 0
Accepted
time: 0ms
memory: 3740kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 2 2 2 2 2 2 2 2
2 1 2 2 2 2 2 2 2 2
2 2 1 2 2 2 2 2 2 2
2 2 2 1 2 2 2 2 2 2
2 2 2 2 1 2 2 2 2 2
2 2 2 2 2 1 2 2 2 2
2 2 2 2 2 2 1 2 2 2
2 2 2 2 2 2 2 1 2 2
2 2 2 2 2 2 2 2 1 2
2 2 2 2 2 2 2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 1
1 0 1 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0
0 0 0 1 0 1 0 0 0 0
0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 1 0 1 0 0
0 0 0 0 0 0 1 0 1 0
0 0 0 0 0 0 0 1 0 1
1 0 0 0 0 0 0 0 1 0

result:

ok 

Test #40:

score: 0
Accepted
time: 4ms
memory: 4484kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #41:

score: 0
Accepted
time: 97ms
memory: 23004kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #42:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 2 2
0 1 0 0 2
0 0 1 2 0
2 0 2 1 2
2 2 0 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #43:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 0 2 2 2 2 0 2
0 1 2 0 0 0 0 2 2 0
0 2 1 0 2 2 0 2 2 0
0 0 0 1 0 0 0 0 0 0
2 0 2 0 1 0 0 0 2 0
2 0 2 0 0 1 2 0 0 2
2 0 0 0 0 2 1 2 0 0
2 2 2 0 0 0 2 1 2 2
0 2 2 0 2 0 0 2 1 2
2 0 0 0 0 2 0 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #44:

score: 0
Accepted
time: 2ms
memory: 4328kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 2 0 0 0 0 0 2 0 0 2 2 2 2 2 0 2 0 2 2 0 2 2 2 2 2 0 2 2 2 2 0 0 2 0 2 0 2 0 2 0 2 0 2 2 2 2 0 0 2 2 2 0 0 2 0 2 2 2 2 2 2 0 0 0 0 2 0 0 2 0 0 2 0 2 2 2 0 2 2 2 0 2 0 2 0 0 0 2 2 0 0 0 2 0 2 2 0 2 0 0 0 2 0 2 2 2 0 2 2 2 0 0 0 2 0 2 2 2 2 0 2 2 0 2 2 2 0 2 2...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #45:

score: 0
Accepted
time: 46ms
memory: 15700kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 2 0 2 0 0 2 0 0 0 0 0 0 2 2 0 2 2 2 2 0 2 0 2 0 0 0 2 0 2 0 0 2 0 0 0 2 2 0 2 2 0 0 0 2 2 0 0 0 2 0 2 0 0 2 2 0 2 2 0 2 0 2 0 2 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 2 2 0 0 2 0 2 0 2 0 0 0 0 2 0 2 2 2 2 0 2 2 0 2 0 2 2 2 2 0 2 2 2 2 2 0 2 0 0 2 2 0 2 2 2 2 2 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #46:

score: 0
Accepted
time: 0ms
memory: 3872kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 2 2
2 1 0
2 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #47:

score: 0
Accepted
time: 0ms
memory: 4056kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
4
1 2 2 2
2 1 0 2
2 0 1 2
2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #48:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 0
2 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 1 0
1 0 1 0 0
0 1 0 1 0
1 0 1 0 0
0 0 0 0 0

result:

ok 

Test #49:

score: 0
Accepted
time: 21ms
memory: 8192kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #50:

score: 0
Accepted
time: 86ms
memory: 23100kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #51:

score: 0
Accepted
time: 113ms
memory: 22896kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #52:

score: 0
Accepted
time: 102ms
memory: 22892kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 0 2 2 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 0 2 0 2 0 2 0 0 0 0 2 2 2 2 0 2 0 2 0 2 2 2 2 0 0 2 2 0 2 0 2 0 0 0 2 0 0 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 2 2 0 2 2 0 0 0 0 0 0 2 0 0 2 0 0 0 0 2 2 2 2 0 2 2 0 0 2 0 0 0 0 0 2 0 0 0 0 2 0 0 2 0 2 0 0 0 0 0 0 0 0 2 2 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #53:

score: 0
Accepted
time: 45ms
memory: 15756kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #54:

score: 0
Accepted
time: 38ms
memory: 15640kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 2 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 0 0 0 2 0 0 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #55:

score: 0
Accepted
time: 88ms
memory: 22988kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #56:

score: 0
Accepted
time: 101ms
memory: 22908kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 2 0 2 0 0 0 2 0 0 0 0 0 2 2 0 2 0 2 2 0 0 0 0 2 2 2 2 2 2 2 0 0 2 2 0 0 2 0 2 2 0 0 0 2 2 0 0 0 2 0 0 2 0 2 0 0 0 0 0 0 0 2 2 0 2 2 2 0 0 0 0 0 2 0 2 0 2 2 0 0 2 2 0 2 0 0 2 2 0 2 2 0 2 2 0 0 2 2 2 0 0 2 2 0 0 2 0 0 0 0 2 2 0 2 0 2 0 2 0 2 2 2 0 0 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #57:

score: 0
Accepted
time: 38ms
memory: 15756kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Subtask #4:

score: 35
Accepted

Test #58:

score: 35
Accepted
time: 0ms
memory: 3768kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 0 0
0 1 0
0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0
0 0 0
0 0 0

result:

ok 

Test #59:

score: 0
Accepted
time: 0ms
memory: 3836kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 2 2
2 1 2
2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1
1 0 1
1 1 0

result:

ok 

Test #60:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 1 1 1
0 1 1 1 1
0 1 1 1 1
0 1 1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0
0 0 1 0 0
0 1 0 1 0
0 0 1 0 1
0 0 0 1 0

result:

ok 

Test #61:

score: 0
Accepted
time: 26ms
memory: 8112kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #62:

score: 0
Accepted
time: 100ms
memory: 22896kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #63:

score: 0
Accepted
time: 93ms
memory: 22900kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #65:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 0
2 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 1 0
1 0 1 0 0
0 1 0 1 0
1 0 1 0 0
0 0 0 0 0

result:

ok 

Test #66:

score: 0
Accepted
time: 25ms
memory: 8280kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #67:

score: 0
Accepted
time: 99ms
memory: 22984kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #69:

score: 0
Accepted
time: 102ms
memory: 22952kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 0 2 2 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 0 2 0 2 0 2 0 0 0 0 2 2 2 2 0 2 0 2 0 2 2 2 2 0 0 2 2 0 2 0 2 0 0 0 2 0 0 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 2 2 0 2 2 0 0 0 0 0 0 2 0 0 2 0 0 0 0 2 2 2 2 0 2 2 0 0 2 0 0 0 0 0 2 0 0 0 0 2 0 0 2 0 2 0 0 0 0 0 0 0 0 2 2 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #70:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 0
2 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 1 0
1 0 1 0 0
0 1 0 1 0
1 0 1 0 0
0 0 0 0 0

result:

ok 

Test #71:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 2 2 0 0 0 0 0 2
2 1 2 2 0 0 0 0 0 2
2 2 1 2 0 0 0 0 0 2
2 2 2 1 0 0 0 0 0 2
0 0 0 0 1 1 0 1 1 0
0 0 0 0 1 1 0 1 1 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 1 1 0 1 1 0
0 0 0 0 1 1 0 1 1 0
2 2 2 2 0 0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 1
1 0 1 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 1
0 0 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 0 0 1 0
0 0 0 0 0 0 0 1 0 0
1 0 0 1 0 0 0 0 0 0

result:

ok 

Test #72:

score: 0
Accepted
time: 0ms
memory: 3828kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 0 0 1 2 0 0 0 0
2 1 0 0 2 2 0 0 0 0
0 0 1 2 0 0 0 2 0 0
0 0 2 1 0 0 0 2 0 0
1 2 0 0 1 2 0 0 0 0
2 2 0 0 2 1 0 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 2 2 0 0 0 1 0 0
0 0 0 0 0 0 0 0 1 1
0 0 0 0 0 0 0 0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 1 1 0 0 0 0
1 0 0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 0 1 0 0
1 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 1 0

result:

ok 

Test #73:

score: 0
Accepted
time: 25ms
memory: 8172kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 0 0 0 0 0 0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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #75:

score: 0
Accepted
time: 93ms
memory: 22976kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 2 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #76:

score: 0
Accepted
time: 96ms
memory: 22980kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #77:

score: 0
Accepted
time: 93ms
memory: 22996kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Subtask #5:

score: 21
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #78:

score: 21
Accepted
time: 1ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 1 0
0 1 0 0 2
0 0 1 2 2
1 0 2 1 2
0 2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #79:

score: 0
Accepted
time: 0ms
memory: 3836kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 2 2 0 1 0 1 2 2
2 1 2 0 0 1 1 2 2 0
2 2 1 0 2 2 1 2 0 0
2 0 0 1 1 2 1 2 0 0
0 0 2 1 1 0 1 0 0 1
1 1 2 2 0 1 1 2 1 0
0 1 1 1 1 1 1 1 2 2
1 2 2 2 0 2 1 1 0 0
2 2 0 0 0 1 2 0 1 1
2 0 0 0 1 0 2 0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #80:

score: 0
Accepted
time: 2ms
memory: 4288kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 1 1 2 0 0 1 1 1 2 1 1 0 2 1 2 1 1 2 1 0 0 2 1 2 2 2 0 0 1 2 2 1 1 0 1 2 2 1 2 2 0 0 2 0 2 0 0 0 2 1 0 0 2 0 0 0 2 2 2 0 1 0 1 0 2 0 1 1 1 1 0 1 0 1 1 0 2 2 0 2 0 0 0 1 0 2 1 2 1 0 0 0 0 0 2 1 2 0 1 0 0 0 0 1 1 2 2 0 2 2 0 0 1 2 2 1 0 0 1 1 1 1 0 0 0 0 2 2 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #81:

score: 0
Accepted
time: 45ms
memory: 15668kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 2 1 1 2 1 0 1 1 1 2 0 0 0 0 2 1 1 1 0 1 2 1 0 2 2 1 1 1 2 0 2 0 1 1 1 1 1 2 0 2 1 2 1 0 0 1 0 2 0 2 1 1 1 1 1 1 2 2 2 0 0 1 0 2 1 2 2 0 2 1 0 2 2 2 0 0 1 2 2 1 1 1 2 2 0 1 0 2 0 0 1 2 1 1 2 2 2 0 0 1 0 0 2 2 1 1 1 0 1 1 1 1 2 1 2 1 2 2 0 2 2 1 2 0 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #82:

score: 0
Accepted
time: 0ms
memory: 4092kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 2 2 2
0 1 0 0 0
2 0 1 2 2
2 0 2 1 2
2 0 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 1
0 0 0 0 0
1 0 0 1 0
0 0 1 0 1
1 0 0 1 0

result:

ok 

Test #83:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 1 0 0 0 0 1 0 1 1
1 1 0 0 0 0 1 0 1 1
0 0 1 0 0 0 0 0 0 0
0 0 0 1 2 2 0 2 0 0
0 0 0 2 1 2 0 2 0 0
0 0 0 2 2 1 0 2 0 0
1 1 0 0 0 0 1 0 1 1
0 0 0 2 2 2 0 1 0 0
1 1 0 0 0 0 1 0 1 1
1 1 0 0 0 0 1 0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 1 0 0
0 0 0 1 0 1 0 0 0 0
0 0 0 0 1 0 0 1 0 0
0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 1 0 0 0 0
0 0 0 0 0 0 1 0 0 1
0 0 0 0 0 0 0 0 1 0

result:

ok 

Test #84:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 2 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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #86:

score: 0
Accepted
time: 46ms
memory: 15980kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 2 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #87:

score: 0
Accepted
time: 38ms
memory: 15980kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 2 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #88:

score: 0
Accepted
time: 44ms
memory: 15680kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #89:

score: 0
Accepted
time: 40ms
memory: 15988kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Subtask #6:

score: 4
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #90:

score: 4
Accepted
time: 0ms
memory: 3800kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 1 3 3 3
1 1 1 0 2
3 1 1 1 3
3 0 1 1 3
3 2 3 3 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #91:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 1 1 3 1 0 0 1 2 3
1 1 1 2 3 3 3 2 0 3
1 1 1 1 0 0 1 2 3 3
3 2 1 1 3 3 2 0 2 0
1 3 0 3 1 0 0 2 3 1
0 3 0 3 0 1 0 3 3 2
0 3 1 2 0 0 1 2 1 1
1 2 2 0 2 3 2 1 1 1
2 0 3 2 3 3 1 1 1 0
3 3 3 0 1 2 1 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #92:

score: 0
Accepted
time: 2ms
memory: 4124kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 2 2 3 0 3 1 1 3 1 1 3 2 0 2 0 3 3 0 2 1 1 2 2 2 1 0 3 1 2 2 3 1 3 2 0 3 3 1 3 0 2 3 1 0 2 1 0 3 2 1 2 3 2 2 2 3 0 3 0 1 0 0 1 1 1 1 0 3 1 0 1 0 0 2 1 2 1 2 0 3 2 1 1 1 0 0 1 0 1 0 0 1 0 0 2 0 0 1 2 3 0 1 2 1 3 0 1 0 1 2 3 2 0 2 0 3 0 3 0 1 3 3 3 1 1 3 2 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #93:

score: 0
Accepted
time: 43ms
memory: 11104kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 3 2 1 1 1 3 2 2 0 0 0 0 3 1 0 3 2 2 2 3 3 3 3 2 1 1 1 0 0 3 3 1 3 2 1 2 0 3 0 0 3 0 3 2 3 3 2 2 2 1 3 0 1 3 0 2 1 0 2 2 2 1 0 3 0 3 0 3 0 0 0 1 0 2 2 0 3 2 0 2 0 2 3 2 0 2 0 1 2 2 2 0 2 1 1 0 2 3 2 0 2 0 3 3 1 3 3 2 1 3 0 1 3 1 3 3 0 3 3 1 0 1 1 3 2 0 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #94:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 3 2 2 0
3 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #95:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 2 2 0 0 0 2 0
0 1 1 0 0 1 1 0 0 1
0 1 1 3 0 1 1 0 0 1
2 0 3 1 2 0 0 0 2 0
2 0 0 2 1 0 0 0 2 0
0 1 1 0 0 1 1 0 0 1
0 1 1 0 0 1 1 0 0 1
0 0 0 0 0 0 0 1 0 0
2 0 0 2 2 0 0 0 1 0
0 1 1 0 0 1 1 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #96:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 2 2 0 2 0 0 0
0 1 0 0 0 0 0 0 2 2
0 0 1 0 0 0 0 1 0 0
2 0 0 1 2 0 2 0 0 0
2 0 0 2 1 0 2 0 0 0
0 0 0 0 0 1 0 0 0 3
2 0 0 2 2 0 1 0 0 0
0 0 1 0 0 0 0 1 0 0
0 2 0 0 0 0 0 0 1 2
0 2 0 0 0 3 0 0 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #97:

score: 0
Accepted
time: 11ms
memory: 5252kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #98:

score: 0
Accepted
time: 39ms
memory: 11232kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #99:

score: 0
Accepted
time: 43ms
memory: 11124kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 0 2 0 0 0 0 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #100:

score: 0
Accepted
time: 39ms
memory: 11096kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #101:

score: 0
Accepted
time: 34ms
memory: 11100kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #102:

score: 0
Accepted
time: 34ms
memory: 11228kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #103:

score: 0
Accepted
time: 38ms
memory: 11232kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 3 2 3 2 3 3 3 3 3 2 2 3 3 2 2 2 2 3 3 2 3 2 3 2 2 3 3 3 3 3 3 2 3 3 2 2 3 3 2 2 2 3 3 2 3 2 3 3 3 3 2 2 3 3 2 3 2 2 3 2 3 3 3 3 2 2 2 2 2 2 2 3 2 3 2 3 2 3 3 3 2 2 2 2 3 2 3 2 2 2 3 2 3 2 2 3 3 3 3 2 2 3 3 2 2 3 2 2 2 3 3 3 3 3 2 2 3 3 3 2 3 2 2 2 3 2 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #104:

score: 0
Accepted
time: 39ms
memory: 11028kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 3 1 1 1 3 1 1 1 1 1 3 1 3 1 3 1 1 1 3 1 1 1 1 3 1 3 3 3 1 3 1 1 1 1 3 3 1 1 1 1 3 1 1 1 3 1 3 3 3 3 1 3 3 1 1 3 3 3 1 3 1 1 3 3 3 1 3 3 3 1 1 3 1 1 3 1 3 3 3 3 1 3 3 1 1 1 3 1 1 1 1 1 1 3 1 3 1 1 3 1 1 1 3 1 3 1 1 1 3 3 3 1 3 1 3 1 3 1 3 1 3 1 1 1 1 1 3 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #105:

score: 0
Accepted
time: 44ms
memory: 11116kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 3 0 3 0 0 0 3 3 3 0 0 0 0 3 0 0 0 3 3 0 0 3 0 0 0 0 3 0 3 3 3 0 0 0 0 0 3 0 3 3 0 3 3 0 0 0 0 0 3 3 3 0 3 0 3 3 3 0 3 0 0 3 3 3 0 0 3 3 3 3 3 0 0 0 0 0 3 0 3 3 3 0 0 0 0 3 0 0 3 0 3 3 3 0 3 3 0 3 3 0 0 3 3 0 0 0 3 0 3 3 0 0 3 3 0 0 0 3 0 0 0 0 3 0 3 3 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Extra Test:

score: 0
Extra Test Passed