QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140885#1135. Connecting SupertreesAbdelmagedNour#100 ✓139ms23116kbC++202.1kb2023-08-16 22:17:002024-07-04 02:38:30

Judging History

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

  • [2024-07-04 02:38:30]
  • 评测
  • 测评结果:100
  • 用时:139ms
  • 内存:23116kb
  • [2023-08-16 22:17:00]
  • 提交

answer

#include <bits/stdc++.h>
//#include "grader.cpp"
using namespace std;
#include "supertrees.h"
struct DSU{
    int p[1005],sz[1005];
    void init(int n){
        iota(p,p+n,0);
        fill(sz,sz+n,1);
    }
    int Find(int u){
        return(p[u]==u?u:(p[u]=Find(p[u])));
    }
    bool operator()(int u,int v){
        u=Find(u);v=Find(v);
        if(u==v)return 0;
        if(sz[u]>sz[v])swap(u,v);
        sz[v]+=sz[u];
        p[u]=v;
        return 1;
    }
}dsu;
int construct(vector<vector<int>>p){
	int n=p.size();
	vector<vector<int>>E(n,vector<int>(n));
    dsu.init(n);
    bitset<1005>bit[n];
	for(int i=0;i<n;i++){
        bit[i].reset();
        for(int j=0;j<n;j++){
            bit[i][j]=(p[i][j]==1);
            if(p[i][j]==3)return 0;
            if(p[i][j])dsu(i,j);
        }
    }
    for(int i=0;i<n;i++){
        int cnt=0;
        for(int j=0;j<n;j++)cnt+=(p[i][j]>0);
        if(cnt!=dsu.sz[dsu.Find(i)]||p[i][i]!=1)return 0;
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(p[i][j]==2&&(bit[i]&bit[j]).count())return 0;
        }
    }
    int vis[n]={};
    for(int i=0;i<n;i++){
        if(dsu.Find(i)==i){
            vector<int>nodes,cycle;
            for(int j=0;j<n;j++){
                if(dsu.Find(j)==i)nodes.push_back(j);
            }
            for(auto v:nodes){
                if(vis[v])continue;
                vector<int>chain;
                for(int u=0;u<n;u++){
                    if(p[v][u]==1){
                        chain.push_back(u),vis[u]=1;
                    }
                }
                sort(chain.begin(),chain.end());
                for(int j=1;j<chain.size();j++)E[chain[j-1]][chain[j]]=E[chain[j]][chain[j-1]]=1;
                cycle.push_back(chain.back());
            }
            if(cycle.size()==1)continue;
            if(cycle.size()==2)return 0;
            cycle.push_back(cycle[0]);
            for(int j=1;j<cycle.size();j++)E[cycle[j-1]][cycle[j]]=E[cycle[j]][cycle[j-1]]=1;
        }
    }
    build(E);
    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: 4044kb

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: 3808kb

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: 3848kb

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: 0ms
memory: 3784kb

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: 3756kb

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: 2ms
memory: 4452kb

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: 90ms
memory: 23008kb

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: 3812kb

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: 3816kb

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: 4104kb

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: 3848kb

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: 4468kb

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: 99ms
memory: 23076kb

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: 3820kb

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: 4080kb

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: 3ms
memory: 4292kb

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: 54ms
memory: 15040kb

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: 3780kb

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: 3808kb

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: 26ms
memory: 8128kb

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: 93ms
memory: 23000kb

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 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ok 

Test #23:

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

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

Test #25:

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

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: 43ms
memory: 15088kb

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: 99ms
memory: 22976kb

input:

005602cc-10e6-44fc-b5b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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 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: 3780kb

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: 3812kb

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: 4076kb

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: 3844kb

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: 3760kb

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: 3872kb

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: 4116kb

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: 4ms
memory: 4760kb

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: 98ms
memory: 22896kb

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: 4116kb

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: 4044kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 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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: 138ms
memory: 22912kb

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: 3740kb

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: 4108kb

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: 3ms
memory: 4292kb

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: 55ms
memory: 15092kb

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: 3808kb

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: 3740kb

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: 26ms
memory: 8152kb

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

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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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 ...

result:

ok 

Test #52:

score: 0
Accepted
time: 139ms
memory: 23008kb

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: 44ms
memory: 15032kb

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: 14992kb

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

Test #56:

score: 0
Accepted
time: 134ms
memory: 22992kb

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: 39ms
memory: 15040kb

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: 3764kb

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: 3876kb

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: 0ms
memory: 3760kb

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: 25ms
memory: 8208kb

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: 94ms
memory: 23116kb

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: 94ms
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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#65:

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

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: 26ms
memory: 8152kb

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: 110ms
memory: 23004kb

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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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #69:

score: 0
Accepted
time: 134ms
memory: 22924kb

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: 3816kb

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: 3824kb

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: 3784kb

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 0 0 0 1 0 0 0 0 0
0 0 0 0 1 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 1 0 0 0 1 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 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: 26ms
memory: 8212kb

input:

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

result:

ok 

Test #75:

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

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: 92ms
memory: 22992kb

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: 94ms
memory: 22960kb

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: 0ms
memory: 3808kb

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: 3804kb

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: 3ms
memory: 4588kb

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: 55ms
memory: 15064kb

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: 3816kb

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: 3820kb

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: 3896kb

input:

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

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 1 0 0 0
0 0 0 0 1 0 0 0 0 1
1 0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0 0
0 1 0 0 0 0 0 0 0 1
0 0 0 1 0 0 0 1 0 0
1 0 1 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 1 0 0 1 0 0 0 0 0

result:

ok 

Test #85:

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

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
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 #86:

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

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: 46ms
memory: 14992kb

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: 40ms
memory: 14988kb

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: 38ms
memory: 14980kb

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: 4116kb

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: 3876kb

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: 4356kb

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: 46ms
memory: 15072kb

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: 3844kb

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: 4076kb

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: 3744kb

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: 6284kb

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: 15208kb

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: 40ms
memory: 15076kb

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: 15060kb

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: 38ms
memory: 15088kb

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: 42ms
memory: 15080kb

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: 39ms
memory: 15076kb

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: 38ms
memory: 15212kb

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: 48ms
memory: 15072kb

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